note 8204 added to mysql_connect
| From: | jonathan dot sharpmedia dot net at php2 dot chek dot com | Date: | Thu, 31 Aug 2000 03:43:31 +0000 |
| Subject: | note 8204 added to mysql_connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3713@lists.php.net to get a copy of this message | ||
In PHP4 if you have:
$conn = mysql_connect("host", "user", "pass");
echo $conn;
It will print "Resource id #n" instead of "n" as in PHP3, it works the same
though...
Also... :
$result = mysql_query(...);
also returns "Resource id #n" instead of an actual INT.
http://www.php.net/manual/function.mysql-connect.php