note 80168 added to function.mysql-connect
| From: | Anonymous at osu1 dot php dot net | Date: | Wed, 02 Jan 2008 15:58:48 +0000 |
| Subject: | note 80168 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-134659@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 64.71.164.2
Probable Submitter: 152.2.168.205
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- https://master.php.net/note/edit/80168
Del: integrated -- https://master.php.net/note/delete/80168/integrated
Del: useless -- https://master.php.net/note/delete/80168/useless
Del: bad code -- https://master.php.net/note/delete/80168/bad+code
Del: spam -- https://master.php.net/note/delete/80168/spam
Del: non-english -- https://master.php.net/note/delete/80168/non-english
Del: in docs -- https://master.php.net/note/delete/80168/in+docs
Del: other reasons-- https://master.php.net/note/delete/80168
Reject -- https://master.php.net/note/reject/80168
Search -- https://master.php.net/manage/user-notes.php