php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29004 mysql dbselect error
Submitted: 2004-07-03 21:51 UTC Modified: 2004-11-02 09:18 UTC
From: quique at nlared dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.7 OS: windows 2003 amd64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: quique at nlared dot com
New email:
PHP Version: OS:

 

 [2004-07-03 21:51 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-04 09:14 UTC] 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-11-02 09:18 UTC] quique at nlared dot com
yes i know but wen you use the select function for one of two instances of the same server the change produced in both
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC