MySQL Forums
Forum List  »  PHP

Re: Warning: mysql_num_rows(): supplied argument is not a valid MySQL (the answer)
Posted by: rob richards
Date: July 02, 2008 10:17PM

Probably your sql statement sucks, and should look something like:

$query = " SELECT * FROM blah WHERE id=something";

echo "My query that sucks is: $query" ;

$result_set = mysql_query($query);
if (mysql_num_rows($result_set) == 0) { ....

See if $query is actually one that produces correct results!

ciao.

Options: ReplyQuote


Subject
Written By
Posted
August 10, 2005 10:15PM
October 26, 2005 04:35PM
October 26, 2005 04:38PM
January 14, 2006 03:43AM
September 08, 2005 02:08PM
Re: Warning: mysql_num_rows(): supplied argument is not a valid MySQL (the answer)
July 02, 2008 10:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.