I don't think either of those will help.
We had an issue where it wouldn't even connect to the database, and those would produce errors, but I am looking at something that would do so right at the "database connectin" point.
Code: Select all
<?php $sqlconn=@mysql_connect("localhost","root","");
$rs=@mysql_select_db("site",$sqlconn);
?>
I use one dbconn file for this site, so if we need to make password changes, it's easy. Is there something I can put in here, that if the DB is producing that error, or it simply won't connect because the DB is out of operation (we had an error 500), it can trigger something?