ambo Posted September 17, 2008 Share Posted September 17, 2008 Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';' in /home/content/m/h/p/mhpmavrick/html/Pages/Decura/home.php on line 78 echo "<table width="243" cellspacing="0" cellpadding="0"> <tr> <td width="74">Name</td> <td width="169">{$row['name']}</td> </tr> <tr> <td width="74">Email</td> <td width="169">{$row['email']}</td> </tr> <tr> <td width="74">Gender</td> <td width="169">{$row['sex']}</td> </tr> </table>"; Quote Link to comment https://forums.phpfreaks.com/topic/124578-solved-error-message-help/ Share on other sites More sharing options...
genericnumber1 Posted September 17, 2008 Share Posted September 17, 2008 you're using quotes improperly, escape them or use single quotes... you can see your error with syntax highlighting. See: echo "<table width="243" cellspacing="0" cellpadding="0"> <tr> <td width="74">Name</td> <td width="169">{$row['name']}</td> </tr> <tr> <td width="74">Email</td> <td width="169">{$row['email']}</td> </tr> <tr> <td width="74">Gender</td> <td width="169">{$row['sex']}</td> </tr> </table>"; Quote Link to comment https://forums.phpfreaks.com/topic/124578-solved-error-message-help/#findComment-643449 Share on other sites More sharing options...
btherl Posted September 17, 2008 Share Posted September 17, 2008 You've got double quotes inside a double quoted string there. You can do this to make it work: echo "<table width=\"243\" cellspacing=\"0\" cellpadding=\"0\"> ... and so on A backslash in front of every double quote. Another option is to use single quotes in your html or just omit the quotes altogether (html perfectionists won't like that of course ) Quote Link to comment https://forums.phpfreaks.com/topic/124578-solved-error-message-help/#findComment-643453 Share on other sites More sharing options...
ambo Posted September 17, 2008 Author Share Posted September 17, 2008 Thanks Guys it worked Quote Link to comment https://forums.phpfreaks.com/topic/124578-solved-error-message-help/#findComment-643941 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.