Mysql-logo

The mistake "mysql_fetch_assoc() expects parameter 1 to be resource” may is associated with several factors with which PHP will access the Database, to identify the specific error use the following command.

Ex: Solution to Identify Query Specific Error


$query = "SELECT *..."; $query = mysql_query($query); if (!$query) { die(mysql_error()); }