Jump to content

Does anyone knows what: "Parse error: syntax error, unexpected T_ECHO" means?


skidmark10

Recommended Posts

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>";

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".  :P

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.