Reputation: 25
I inserted this whole string in this variable , but it is not working ... I am pretty sure it's a quote issue .. it's inside single quotes.. where did i go wrong ?
$new_image .='<td> <a href="#" onclick="return false;"><img src="includes/languages/english/images/buttons/button_select.gif" border="0" alt="Select" title=" Select " onclick="popupWindowSelectImg('./images_select.php?imgSize=thumb&inpt=products_image_sm_1&div=div_img_sm1&width=200&height=30','thumb','products_image_sm_1','div_img_sm1');"></a></td>';
Upvotes: 0
Views: 38
Reputation: 219794
The syntax highlighter clearly shows your issue which, of course, is a quote:
onclick="popupWindowSelectImg('./images_select.php?
^^^^^
HERE
You need to escape all of the single quotes in that string.
Upvotes: 2