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 Link to comment https://forums.phpfreaks.com/topic/219670-error-reporting-problem/ 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); Link to comment https://forums.phpfreaks.com/topic/219670-error-reporting-problem/#findComment-1138886 Share on other sites More sharing options...
revraz Posted November 24, 2010 Share Posted November 24, 2010 Basically your connect string is wrong. Link to comment https://forums.phpfreaks.com/topic/219670-error-reporting-problem/#findComment-1138889 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.