Jump to content

Archived

This topic is now archived and is closed to further replies.

Woodburn2006

silly error

Recommended Posts

i have these errors when i upload my page onto the server. it is fine on the testing server on my computer but will not run on the actual server

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/dledge/public_html/pages/news.php on line 8

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/dledge/public_html/pages/news.php on line 11

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/dledge/public_html/pages/news.php on line 14

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dledge/public_html/pages/news.php on line 17

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dledge/public_html/pages/news.php on line 18

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dledge/public_html/pages/news.php on line 19

anyone have any ideas?

thanks

Share this post


Link to post
Share on other sites
Your database connection is failing.

Share this post


Link to post
Share on other sites
the problem is:
mysql_query(): change the : to a semi-colon. example:

mysql_query("QUERYHERE");

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.