hi,

because this is causing troubles to many users.

$con1 = mysql_connect(..);
$con2 = mysql_connect(..);

mysql_select_db($con1, "db1");
mysql_select_db($con2, "db2");

mysql_query("SELECT * FROM ..", $con1); /* this is applied to 'db2'.
                                           or am I wrong? */

The current DB should be part of the mysql handle. Also the mysql
result set (I remember my db-classes to use each others result sets).

-daniel

----- Original Message -----
>From   : Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent   : Montag, 22. April 2002
Subject: [PHP-DEV] Major Bug in multiple MySQL Connections?

> Because the current db is not a property specified in mysql_connect() so I
> don't see what you would be switching back and forth from/to.

> -Rasmus



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to