Does anyone have an elegant way to test to see if a database connection is in place, and then kicking up an error page if it can\'t make the connection?
I was thinking something along the logic of...
Try (mysql_connect(blah, blah, blah))
Catch(go to an error page)
Error Page:
\"Sorry DB is down for maintenance try back in a few minutes\"
Thanks in advance.
D.