PostgreSQL error reporting

admin

Administrator
Staff member
I'm trying to add a error reporting function to my website. But I always get the standard php error message and not my own costom error message. Can anybody please help me. I have tried using the @ before the connect comand but this turns my own error reporting off also.

Here's my code:

function db_connect_error($db_connect){
global $SITE_NAME3
if (!$db_connect) {
header ("Location: $SITE_NAME3");
exit;
}
}

Thanks.
 
Back
Top