On line 33 you have $i++
, but you haven’t initialised $i
I expect you have a syntax error in your MySQL query. Try this:
$query1 = mysql_query($query) or die(mysql_error());
which will display the SQL error which you’ll have to fix.
More: Your SQL is susceptible to an injection attack. Make sure you escape your inputs properly, and don’t use mysql()
– it”s deprecated. Use mysqli
or PDO
instead.
3
solved Search engine PHP return error [closed]