BFreshour
Programmer
- Mar 20, 2002
- 84
What is wrong with the following code? When I have the database up, it connects and loads the page. However when the database is down, instead of displaying the die message; it shows a blank HTML page.
Code:
if (!($db = @ mysql_connect($dbhost, $dbuname, $dbpass)))
die("MySQL Server appears to be down.");