#29004 [Opn->Bgs]: mysql dbselect error
| From: | georg@php.net | Date: | Sun, 04 Jul 2004 07:14:58 +0000 |
| Subject: | #29004 [Opn->Bgs]: mysql dbselect error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61653@lists.php.net to get a copy of this message | ||
ID: 29004
Updated by: georg@php.net
Reported By: quique at nlared dot com
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: windows 2003 amd64
PHP Version: 4.3.7
New Comment:
mysql_connect doesn't select or change the database.
Please check the documentation for mysql_connect
( http://www.php.net/manual/en/
function.mysql-connect.php )
Previous Comments:
------------------------------------------------------------------------
[2004-07-03 21:51:34] quique at nlared dot com
Description:
------------
When use two connection for use diferent database in the same server
the first connetion change database when you connect with the second
connection
Reproduce code:
---------------
$dbconnect1=mysql_connect($server,$user$pass,$db1)
$dbconnect2=mysql_connect($server,$user$pass,$db2)
now $dbconnect1 is using $db2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29004&edit=1