MySQL Forums
Forum List  »  PHP

Re: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in
Posted by: Paul McArdle
Date: June 27, 2005 07:04PM

This is a very general error. Most of the time it just means that you could not connect to the database (for whatever reason) and thus the result set you tried to fetch was not a "valid MySQL result resource".
You should try first to get a more descriptive error message

if ($row = mysql_fetch_row($res)) {
return $row;
} else {
print (mysql_error());
}

Options: ReplyQuote


Subject
Written By
Posted
Re: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in
June 27, 2005 07:04PM
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


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.