php - How to solve mysql_fetch_array() issue -


here question ..can tell me details parameter , how resolve these types of problems ?

warning: mysql_fetch_array() expects parameter 1 resource, boolean given in c:\wamp\www\bakeism\admin\manage-ads-cat.php 

thanks & regards

this error means query getting failed (something goes wrong in query) & mysql_query has return false. have practice of mysql_error show exact error in query if any.

mysql_query(...) or die(mysql_error()); 

note: please, don't use mysql_* functions in new code. no longer maintained and officially deprecated. see red box? learn prepared statements instead, , use pdo or mysqli - this article decide which. if choose pdo, here tutorial.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -