note 67347 added to function.mysql-error

From: Date: Wed, 07 Jun 2006 11:36:58 +0000
Subject: note 67347 added to function.mysql-error
Groups: php.notes 
Request: Send a blank email to php-notes+get-113519@lists.php.net to get a copy of this message
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? ---- Server IP: 84.18.202.180 Probable Submitter: 80.3.96.40 (proxied: 81.101.60.200) ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-error.php Edit -- http://master.php.net/note/edit/67347 Del: integrated -- http://master.php.net/note/delete/67347/integrated Del: useless -- http://master.php.net/note/delete/67347/useless Del: bad code -- http://master.php.net/note/delete/67347/bad+code Del: spam -- http://master.php.net/note/delete/67347/spam Del: non-english -- http://master.php.net/note/delete/67347/non-english Del: in docs -- http://master.php.net/note/delete/67347/in+docs Del: other reasons-- http://master.php.net/note/delete/67347 Reject -- http://master.php.net/note/reject/67347 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#113519) next »