logicopinion Posted October 5, 2007 Share Posted October 5, 2007 what error do i have in this code? help please. thank you print "<input name="echo $row['id'];" type='checkbox'>"; error: Parse error: syntax error, unexpected T_ECHO in C:\xampp\htdocs\db\navi\modify.php on line 8 Quote Link to comment https://forums.phpfreaks.com/topic/72017-solved-error-in-code/ Share on other sites More sharing options...
logicopinion Posted October 5, 2007 Author Share Posted October 5, 2007 please someone help me. Quote Link to comment https://forums.phpfreaks.com/topic/72017-solved-error-in-code/#findComment-362843 Share on other sites More sharing options...
BlueSkyIS Posted October 5, 2007 Share Posted October 5, 2007 you have an unexpected T_ECHO on line 8. if only we knew what line 8 looks like.... Quote Link to comment https://forums.phpfreaks.com/topic/72017-solved-error-in-code/#findComment-362846 Share on other sites More sharing options...
MmmVomit Posted October 5, 2007 Share Posted October 5, 2007 print "<input name=\"$row[id]\" type=\"checkbox\">"; Quote Link to comment https://forums.phpfreaks.com/topic/72017-solved-error-in-code/#findComment-362850 Share on other sites More sharing options...
BlueSkyIS Posted October 5, 2007 Share Posted October 5, 2007 print "<input name=\"$row[id]\" type=\"checkbox\">"; doh, silly me. i was hinting at hopefully seeing the code before the error. chances are you're missing a semi-colon on the previous line or something similar. Quote Link to comment https://forums.phpfreaks.com/topic/72017-solved-error-in-code/#findComment-362852 Share on other sites More sharing options...
logicopinion Posted October 5, 2007 Author Share Posted October 5, 2007 print "<input name=\"$row[id]\" type=\"checkbox\">"; thank you man i think i solved the problem i realy can`t get understud where how to put this : """"""""""""""""""" thanks to you all Quote Link to comment https://forums.phpfreaks.com/topic/72017-solved-error-in-code/#findComment-362855 Share on other sites More sharing options...
BlueSkyIS Posted October 5, 2007 Share Posted October 5, 2007 ah yes, i see now. tip: use single-quotes in HTML tags. it's simpler to understand and doesn't require slash escapes: print "<input name='{$row[id]}' type='checkbox'>"; Quote Link to comment https://forums.phpfreaks.com/topic/72017-solved-error-in-code/#findComment-362858 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.