Page 1 of 1

PHP Error!

Posted: Tue Jun 29, 2004 6:43 pm
by Kalashnikov
http://lm.nationgaming.com/

The above is our web-address. The website was designed about a year ago and now we've only moved it over to a new webserver and now its gone bezerk! I know that the mysql database names, pass's, etc, are changed and I've changed many files to change over, but now its seems that errors are beginning to come from other files... Mainly on the "skeleton" files. Below are the following errors (these occur several times).

Code: Select all

*Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/lmnatio/public_html/skeleton2.php on line 67
*Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lmnatio/public_html/skeleton2.php on line 129
*Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lmnatio/public_html/skeleton.php on line 270
*Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lmnatio/public_html/skeleton.php on line 270
*Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lmnatio/public_html/skeleton.php on line 270
Now below are the two files which are causing errors. I'd like to know WHY its causing these errors and how to fix it!!!!!

http://lm.nationgaming.com/lm.zip

Posted: Tue Jun 29, 2004 6:46 pm
by evilmonkey
I doubt anyone can tell you what's wrong. Double-check everything with your mysql, and always remeber, put "or die(mysql_error());" after every query. That might shed some light on your problem.

Posted: Tue Jun 29, 2004 6:46 pm
by John Cartwright
seems like its every query....

are you sure your db structure is the same from your previous host??

Posted: Tue Jun 29, 2004 6:54 pm
by feyd
you guys (Kalashnikov) need to add error checking... and should think about moving to templates..