Forum Moderators: coopster
function errorHandler($errno, $errstr, $errfile, $errline) {
global $dbh;
mysqli_query($dbh, sprintf("INSERT IGNORE INTO error_log VALUES('%s', '%s', '%s', '%s')",
// blah blah blah
);
return true;
}
$old_error_handler = set_error_handler('errorHandler');