Forum Moderators: coopster

Message Too Old, No Replies

echo and T CONSTANT ENCAPSED STRING

T_constant_encapsed_string

         

nickakam

2:15 am on Jan 20, 2007 (gmt 0)

10+ Year Member



Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/#*$!#*$!#*$!#*$!#*$!x/public_html/comments/test.php on line 40

the offending line is:

echo "<a href='/comments/delete.php?id=". $id"'>Delete</a>";

I've tried ever combination of " and ' in all different places and yet I still get that message or one like it, can anyone point me in the right direction please?

Cheers,
Nick

cameraman

3:06 am on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're missing a period after $id

dreamcatcher

7:11 am on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just wanted to say welcome to WebmasterWorld cameraman. Good to have you on board. :)

cameraman

8:24 am on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks
Good to have you on board.

I dono, you might want to reserve that for a bit <grin>!

nickakam

8:01 pm on Jan 20, 2007 (gmt 0)

10+ Year Member



Thank you so much, works perfectly :) I'll be reading up on some syntax I think!