note 80168 deleted from function.mysql-connect by nlopess
| From: | nlopess@php.net | Date: | Wed, 02 Jan 2008 16:05:58 +0000 |
| Subject: | note 80168 deleted from function.mysql-connect by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134661@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Problem with connecting to multiple databases within the same server is that every time you do:
mysql_connect(host, username, passwd);
it will reuse 'Resource id' for every connection, which means you will end with only one
connection reference to avoid that do:
mysql_connect(host, username, passwd, true);
keeps all connections separate.