Hi
I'm trying to connect to the database, which currently works but would like to set a default error page instead of using the die function.
i was trying something like this:
But the above problem is that the MySQL still shows!
How can i fix this?
ps. another question:
if i would like to set some default values how best would i store them : in a SESSION variable; in an array of a SESSION variable or global variables?
Thanks
Nick
I'm trying to connect to the database, which currently works but would like to set a default error page instead of using the die function.
i was trying something like this:
Code:
if (!$connection = mysql_connect($DB_Host, $DB_User, $DB_Pass))
{
SET_SYSTEM_ERROR('Could not connect to database', mysql_error()); //Sets error variables
SYSTEM_ERROR(); //Shows the html
exit;
}
But the above problem is that the MySQL still shows!
How can i fix this?
ps. another question:
if i would like to set some default values how best would i store them : in a SESSION variable; in an array of a SESSION variable or global variables?
Thanks
Nick