note 1039 deleted from mysql_select_db by danbeck
| From: | danbeck@php.net | Date: | Thu, 07 Sep 2000 18:23:57 +0000 |
| Subject: | note 1039 deleted from mysql_select_db by danbeck | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4434@lists.php.net to get a copy of this message | ||
After a bit of frustration (and despite what would seem to be advice to the contrary), you _must_
feed the return value into a variable.
So, for example, this won't work:
mysql_select_db($dbName);
$selectResult = mysql_error();
But this will:
$selectResult = mysql_select_db($dbName,$connectDB);
This is at least true with PHP 3.0.7, MySQL 3.22.22, and RedHat 6.0.