...

View Full Version : Error reporting problem



kevinkhan
11-24-2010, 10:25 AM
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 :(

firepages
11-24-2010, 10:32 AM
you wont get what you want via error_reporting(); since its a mysql error not a php error, in your queries try ...


mysql_query($sql) or die(__FILE__.' '.__LINE__.mysql_error());



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum