I was wondering how i could do something like how IPS did with invision board where if somethings messed up it'll show IPB Driver Error so far i have:
But it don't work.
PHP:
<?php
$config[host] = "localhost";
$config[user] = "root";
$config[pass] = "PaSsWoRd1634735";
$config[data] = "sys";
if(mysql_error()){
die("<h1>Error</h1><p>There Seems To Be An Error Please Click <a href=\"$_SERVER[PHP_SELF]\">Here</a> To Refresh And Try Again");
}else{
mysql_connect($config[host], $config[user], $config[pass]);
mysql_select_db($config[data]);
}
?>
But it don't work.