View Full Version : What seems to be wrong in the line?

07-30-2010, 06:20 AM
I am trying to implement a javascript on a page and the error that I get is

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /fullsize/image.php on line 131

On line 131 the code is

echo"<img id='thepic' onClick="scaleImg('thepic')" onLoad="scaleImg('thepic')" src='$image'>";

Old Pedant
07-30-2010, 07:19 AM
That's a PHP error.

Ask the question in the PHP forum.

Oh, w.t.h. I don't code in PHP, but even I can see that obvious error:

You are using a " *INSIDE* of a "..." delimited string!

Either change to using apostrophes inside the "..." string or use \" to escape them.