Page 1 of 1

phpmysql

Posted: Fri Jan 27, 2012 8:21 pm
by rigo1211
hello guys, im a newbie, whats the meansing of this error in my search.php form??

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampplite\htdocs\search1.php on line 52
thanks... :?:

Re: phpmysql

Posted: Fri Jan 27, 2012 8:42 pm
by Celauran
It means your query returned FALSE. Check the output of mysql_error() to see why.

Re: phpmysql

Posted: Fri Jan 27, 2012 8:44 pm
by Hitman47
You must use the output given from mysql_query(). It appears the input you have given is a boolean (true or false) which is incorrect.

More Here: Manual