PHP Error!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kalashnikov
Forum Newbie
Posts: 1
Joined: Tue Jun 29, 2004 6:43 pm

PHP Error!

Post 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
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

seems like its every query....

are you sure your db structure is the same from your previous host??
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you guys (Kalashnikov) need to add error checking... and should think about moving to templates..
Post Reply