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");
}
}
}
?>
You must be registered for see links
How would I get rid of all the other errors, and only show my error handler?