#29004 [Bgs]: mysql dbselect error
| From: | quique at nlared dot com | Date: | Tue, 02 Nov 2004 08:18:40 +0000 |
| Subject: | #29004 [Bgs]: mysql dbselect error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68610@lists.php.net to get a copy of this message | ||
ID: 29004
User updated by: quique at nlared dot com
Reported By: quique at nlared dot com
Status: Bogus
Bug Type: MySQL related
Operating System: windows 2003 amd64
PHP Version: 4.3.7
New Comment:
yes i know but wen you use the select function for one of two instances
of the same server the change produced in both
Previous Comments:
------------------------------------------------------------------------
[2004-07-04 09:14:56] georg@php.net
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 )
------------------------------------------------------------------------
[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