kevinkhan Posted November 24, 2010 Share Posted November 24, 2010 im getting this error when i run a script mysql_query(): supplied argument is not a valid MySQL-Link resource what do i have to do to echo out the actual error and what line its on like this Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/www/ikhelper.freehostia.com/globinc/loginfunc.php on line 87 iv tried inserting error_reporting(E_ERROR | E_WARNING | E_PARSE); and error_reporting(-1); but doesnt output any error Quote Link to comment Share on other sites More sharing options...
MrXHellboy Posted November 24, 2010 Share Posted November 24, 2010 You used a parameter which is not a LINk id (Link id generated by mysql_connect()). For errors: error_reporting(E_ALL); ini_set('display_errors',1); Quote Link to comment Share on other sites More sharing options...
revraz Posted November 24, 2010 Share Posted November 24, 2010 Basically your connect string is wrong. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.