|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-31 13:42 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 07:00:01 2025 UTC |
Description: ------------ Hi, I've got 2 connections on a server MysQL but to two databases different in a same time, and the two connection want to execute herself on the same database. The message is that's table "blabla" not exist on database 1, but the database selected with mysql_select_db() on the database 2. I don't have any problem with php 5.1.2 Reproduce code: --------------- <?php $cnx1 = mysql_connect('localhost', 'haha', 'hoho'); $cnx2 = mysql_connect('localhost', 'haha', 'hoho'); mysql_select_db('db1', $cnx1); mysql_select_db('db2', $cnx2); mysql_query('SELECT * from TABLE1', $cnx2); Expected result: ---------------- Table TABLE1 doesn't exist