Re: 2 mysql connections to same server?
| From: | William Fong | Date: | Wed, 06 Mar 2002 16:54:04 +0000 |
| Subject: | Re: 2 mysql connections to same server? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17515@lists.php.net to get a copy of this message | ||
I've never tried this before, but couldn't you use $db1 = mysql_connect();
and $db2 = mysql_connect();?
--
William Fong - wfong@mookandblanchard.com
Phone: 626.968.6424 x210 | Fax: 626.968.6877
Wireless #: 805.490.7732 | Wireless E-mail: 8054907732@mobile.att.net
----- Original Message -----
From: "Tom" <tom@script-works.de>
To: <php-db@lists.php.net>
Sent: Tuesday, March 05, 2002 1:46 PM
Subject: [PHP-DB] 2 mysql connections to same server?
: Hi,
:
: does anyone know how to make multiple database connections to the same
: server without getting the same Resource-ID back from the "mysql_connect"
?
:
: I´m trying to write an abstract database class. I want to be able to have
: different instances for every connection. For example one connection for
: session handling and another one for normal database interaction. But
: connecting to the same server (different database) a second time kinda
: overwrites my previos connection and gives back the same resource id.
:
: Thanks for help,
: Tom
:
:
:
: --
: PHP Database Mailing List (http://www.php.net/)
: To unsubscribe, visit: http://www.php.net/unsub.php
:
: