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!
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).
*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!!!!!
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.