[Tue Nov 04 21:17:45 2008] [error] [client 79.173.78.16] PHP Parse error: syntax error, unexpected ';' in /home/user/public_html/complete.php on line 24 $getTotalHosts = mysql_query("SELECT * FROM mirror WHERE uid = '$file_id'" or die(mysql_error()); $getCompleteHosts = mysql_query("SELECT * FROM mirror WHERE uid = '$file_id'" and status in (2,3) or die(mysql_error()); PHP: Where is the error?
you forgot to close your query with ) mysql_query("SELECT * FROM mirror WHERE uid = '$file_id'") <-- or die(mysql_error());
Hello thanks now it have this error here: syntax error, unexpected T_STRING at second line: $getTotalHosts = mysql_query("SELECT * FROM mirror WHERE uid = '$file_id'") or die(mysql_error()); $getCompleteHosts = mysql_query("SELECT * FROM mirror WHERE uid = '$file_id'") and status in (2,3) or die(mysql_error()); PHP:
this should be the case in your second line, you added a closing ) and cut off the and condition $getCompleteHosts = mysql_query("SELECT * FROM mirror WHERE uid = '$file_id'" and status in (2,3)) or die(mysql_error());