...

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



dangerouslydead
07-30-2010, 07: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, 08: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum