note 77690 added to function.mysql-select-db
| From: | me at khurshid dot com | Date: | Sun, 09 Sep 2007 06:03:08 +0000 |
| Subject: | note 77690 added to function.mysql-select-db | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130322@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: 58.110.16.142
----
Manual Page -- http://www.php.net/manual/en/function.mysql-select-db.php
Edit -- https://master.php.net/note/edit/77690
Del: integrated -- https://master.php.net/note/delete/77690/integrated
Del: useless -- https://master.php.net/note/delete/77690/useless
Del: bad code -- https://master.php.net/note/delete/77690/bad+code
Del: spam -- https://master.php.net/note/delete/77690/spam
Del: non-english -- https://master.php.net/note/delete/77690/non-english
Del: in docs -- https://master.php.net/note/delete/77690/in+docs
Del: other reasons-- https://master.php.net/note/delete/77690
Reject -- https://master.php.net/note/reject/77690
Search -- https://master.php.net/manage/user-notes.php