note 5679 deleted from mysql_error by danbeck

From: Date: Thu, 07 Sep 2000 15:31:35 +0000
Subject: note 5679 deleted from mysql_error by danbeck
Groups: php.notes 
Request: Send a blank email to php-notes+get-4371@lists.php.net to get a copy of this message
This is a weird bit of errata -- in PHP3, mysql_error() and mysql_errno() can't report errors on mysql_connect, only operations on a valid connection. Use something like: mysql_connect("somedb") or die("Couldn't connect to somedb: $php_errormsg"); instead.

« previous php.notes (#4371) next »