[PHP]Custom error handling?

Status
Not open for further replies.

Adil

DevBest CEO
May 28, 2011
1,276
714
PHP:
<?php
class mysql{
 public function connect()
{
global $CONFIG;
$con = mysql_connect($CONFIG['mysql']['host'], $CONFIG['myssql']['user'], $CONFIG['mysql']['pass']);
mysql_select_db($CONFIG['mysql']['db'], $con);
if($con == null){
trigger_error("Please check your config file");
}
}
 
}
?>
As you can see, I already have my error handler, but I get this:

How would I get rid of all the other errors, and only show my error handler?
 
Status
Not open for further replies.

Users who are viewing this thread

Top