AdamCCFC Posted January 22, 2010 Share Posted January 22, 2010 Hey, I'm receiving a parse error on line 50! Here's the error message - Parse error: syntax error, unexpected '{', expecting ',' or ';' in C:\xampp\htdocs\mydreamz\comments.php on line 50 Here's line 50 echo "<TR><TD><a href="{$_SERVER['PHP_SELF']}"?action=show&id="{$row['dream_id']}">'Comments'"($comment_row[0])"</TD></TR>"; Can anyone show me where I'm going wrong? Thanks in advanced, Adam Quote Link to comment https://forums.phpfreaks.com/topic/189447-help-me-with-a-line-of-code-please/ Share on other sites More sharing options...
MadTechie Posted January 22, 2010 Share Posted January 22, 2010 you need to escape the quotes ie \" echo "<TR><TD><a href=\"{$_SERVER['PHP_SELF']}\"?action=show&id=\"{$row['dream_id']}\">'Comments'\"($comment_row[0])\"</TD></TR>"; Quote Link to comment https://forums.phpfreaks.com/topic/189447-help-me-with-a-line-of-code-please/#findComment-999987 Share on other sites More sharing options...
AdamCCFC Posted January 22, 2010 Author Share Posted January 22, 2010 Thanks mann that worked Quote Link to comment https://forums.phpfreaks.com/topic/189447-help-me-with-a-line-of-code-please/#findComment-999988 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.