View Single Post
Old March 12th, 2008, 3:51 PM   #2 (permalink)
Roxy
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,653 posts
Gave thanks: 81
Thanked 128 times
Quote:
For those who got a error with the num rows, I suggest you add the error dispaly for the sql error message.

if(!$result){die(mysql_error();}

Stick that below the query, it will give a specific message about what is wrong with the query. There isn't a problem with the num_rows function usually, but with the actual query itself.
Found this while googling.....

or

Quote:
$ret = mysql_query($query) or die(mysql_error());
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline   Reply With Quote
This user thanks Roxy for this great post!
cass_is_awesome (March 12th, 2008)