note 67347 rejected from function.mysql-error by nlopess

From: Date: Wed, 07 Jun 2006 12:06:21 +0000
Subject: note 67347 rejected from function.mysql-error by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-113528@lists.php.net to get a copy of this message
Note Submitter: mikenco at hotmail dot com ---- Trying to keep this really simple, so it only shows a message to our visitors if our database server is down. We have this currently: $connection = mysql_connect($db_host, $db_username, $db_password) or die(mysql_error()); This doesn't work: $connection = mysql_connect($db_host, $db_username, $db_password) or echo "Sorry, our site is currently unavailable"); Any tips?

« previous php.notes (#113528) next »