This error means your query failed. mysql_query()
returns false
if an error occurred, you are then passing false
to mysql_fetch_array()
which is triggering the error message.
Your query could be failing due to a missing/wrong table or field. To see the detailed error, print out the result of mysql_error()
.
The mysql_*
library is deprecated. It is recommended to upgrade to MySQLi or PDO.