Jump to content


Photo

silly error


  • Please log in to reply
3 replies to this topic

#1 Woodburn2006

Woodburn2006
  • Members
  • PipPipPip
  • Advanced Member
  • 214 posts

Posted 31 July 2006 - 10:31 PM

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

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 31 July 2006 - 10:32 PM

Your database connection is failing.

#3 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 31 July 2006 - 10:33 PM

the problem is:
mysql_query(): change the : to a semi-colon. example:

mysql_query("QUERYHERE");

#4 Woodburn2006

Woodburn2006
  • Members
  • PipPipPip
  • Advanced Member
  • 214 posts

Posted 31 July 2006 - 10:44 PM

cheers thorpe, my fault, dint put in the right connection info




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users