phpmysql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rigo1211
Forum Newbie
Posts: 1
Joined: Fri Jan 27, 2012 8:07 pm

phpmysql

Post 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... :?:
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: phpmysql

Post by Celauran »

It means your query returned FALSE. Check the output of mysql_error() to see why.
Hitman47
Forum Newbie
Posts: 6
Joined: Thu Jan 26, 2012 5:58 pm

Re: phpmysql

Post 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
Post Reply