2009/10/20 Andrea Giammarchi <an_red@xxxxxxxxxxx>: > even better > > $error_reporting = error_reporting(0); > if(mysql_real_escape_string($variable) === false) > { > error_reporting($error_reporting); > > // create a default DB connection > > } else > error_reporting($error_reporting); > unset($error_reporting); > Thanks, I will try that this evening. I may not have permissions for that, but we'll see. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php