Help - Warning: mysql_num_rows(): supplied argument is not a valid MySQL

RegisterLogin
Help - Warning: mysql_num_rows(): supplied argument is not a valid MySQL
Post Description: Help - Warning: mysql_num_rows(): supplied argument is not a valid MySQL
Tags: Help, -, Warning:, mysql_num_rows():, supplied, argument, is, not, a, valid, MySQL
This Post Was Posted On Feb 29, 2008 By web hosting #1470
i just created a php script with mysql and for some reason i am getting this error:


     Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in mysite/www/index.php on line 48


can you guys help me how to get this fix, i dont understand the supplied part nor the mysql_num_rows() functions, not even why i get this warning.
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
hostman
#1898 1

     Quote:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:apachefriendsxampphtdocsloanwallindex.php on line 48


ok the reason why you are getting this error is simply because MYSQL cannot connect to your database. take the following steps to make sure you checked everything:

1. check for mispelling
2. make sure you typed the correct table or field name
3. you may have a character that mysql cannot recognize like a ' apostrophe for example
4. if your script worked before, i suggest undo what you did and see what is the difference

98% percent of the time, if you've connected to your database before with the same script, it mostly likely you have a mispelling or you are trying to get data from the wrong table or field.

Courtesy of our friends at www.webune.com

Wallpaperama Team.
Jan 11, 2007 Reply Report abuse
©2011 Webune Forums - Wed Dec 21, 2011 2:37 am
Powered by: Webune Forums V3