skidmark10 Posted July 31, 2011 Share Posted July 31, 2011 I keep recieving the error: Parse error: syntax error, unexpected T_ECHO on Line 13. Does anyone know what "T_ECHO" means, so I can know for future reference? Here's my code, Line 13 is echo "<table border='0'>. Thanks in advance! $sql = "SELECT * FROM Partners_Body_Types WHERE Client_ID=" .$_POST['clientid']. ""; $query = mysql_query($sql) echo "<table border='0'> <tr> <th>Client ID</th> <th>Partner's Body Type</th> <th>Partner's Body Type</th> <th>Partner's Body Type</th> <th>Partner's Body Type</th> </tr>"; Quote Link to comment https://forums.phpfreaks.com/topic/243409-does-anyone-knows-what-parse-error-syntax-error-unexpected-t_echo-means/ Share on other sites More sharing options...
spfoonnewb Posted July 31, 2011 Share Posted July 31, 2011 $query = mysql_query($sql) = $query = mysql_query($sql); Quote Link to comment https://forums.phpfreaks.com/topic/243409-does-anyone-knows-what-parse-error-syntax-error-unexpected-t_echo-means/#findComment-1249934 Share on other sites More sharing options...
gizmola Posted July 31, 2011 Share Posted July 31, 2011 All errors like that indicate you have a syntax problem. In this case the $query = mysql_query.... line above your echo doesn't have a closing semi-colon. So the "echo" on the following line is "unexpected". Quote Link to comment https://forums.phpfreaks.com/topic/243409-does-anyone-knows-what-parse-error-syntax-error-unexpected-t_echo-means/#findComment-1249936 Share on other sites More sharing options...
skidmark10 Posted July 31, 2011 Author Share Posted July 31, 2011 Thank you Quote Link to comment https://forums.phpfreaks.com/topic/243409-does-anyone-knows-what-parse-error-syntax-error-unexpected-t_echo-means/#findComment-1249937 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.