Hello all
i have this piece of code thats within a class:
$this->link = mysql_connect($host, $user, $pass);
mysql_select_db($db);
register_shutdown_function(array(&$this, 'close'));
I was just wondering how to place a error code onto this so instead of displating all the MySQL default i could have could not connect to database.
I know i can stop error codes being display with the @ symbol by the way.
Any help would be great. Thanks