Warning: mysql_num_rows(): supplied argument is not a valid

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
mccommunity
Forum Commoner
Posts: 62
Joined: Mon Oct 07, 2002 8:55 am

Warning: mysql_num_rows(): supplied argument is not a valid

Post by mccommunity »

I am getting the error below when I go to any page on my server with the mysql_num_rows function in it. My server is running php and mysql and phpadmin for mysql runs fine. Any one have any ideas why this would be happening? Thanks.


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

could you please put some code around where the function is used?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

most likely, the query statement just before this, fails for some reason.
Post Reply