Forum Moderators: open

Message Too Old, No Replies

Help needed with MySQL

         

Dr_JohnM

8:44 pm on Apr 21, 2006 (gmt 0)

10+ Year Member



I am trying to set up a website and this is what i get when i open it:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/jvm/public_html/site/functions.php on line 42

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/jvm/public_html/site/functions.php on line 50

If anyone knows what is it and can help me fix it that would be great!

Thanks John

willybfriendly

9:25 pm on Apr 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The error could be generated a number of ways.

If you are by chance OSCommerce, or a variant, you will see this error pop up when there is nothing in the database. If that is the case, enter a phony customer, order, etc. in order to assure that all tables have some data in them.

WBF

JollyK

9:37 pm on Apr 21, 2006 (gmt 0)

10+ Year Member



It can also mean that your database name, or database username/password are not set up correctly. Basically, you get that error when the script tries to do something with the database (probably selecting rows) and fails completely.

JK

Dr_JohnM

10:52 pm on Apr 21, 2006 (gmt 0)

10+ Year Member



so there really isnt one thing that i can do.... Well i guess im going to have to wait for my programmer guy to fix this. Thanks for ur help. John