Re: PHP 4.0 Bug #7120 Updated: mysql_select_db() doesn't work proprely
| From: | Michael | Date: | Thu, 12 Oct 2000 12:24:00 +0000 |
| Subject: | Re: PHP 4.0 Bug #7120 Updated: mysql_select_db() doesn't work proprely | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-34772@lists.php.net to get a copy of this message | ||
Bug Database wrote:
>
> Please read again:
>
> http://www.php.net/manual/function.mysql-pconnect.php
>
> Use mysql_select_db() everytime you need to change
> database to another.
> i.e. before $r3.. line add a mysql_select_db() clause.
But why do I get two link identifiers which are
differents: $link_id1 and $link_id2 (which have
different values: "1" and "2"!) but identify
the same connection to the server ?
The output of my script:
> 1=>2
> 3=>4
> 1146: Table 'BrasnahBTracking.Auth_User' doesn't exist
shows that $link_id1 equals 1, which is different
from $link_id2 whose value is 2.
And mysql_select_db() is supposed to set the database
for a link identifier. Each link identifier should be
set to a different database if the link identifier are
different, even if they use the same connection.
Best Regards
Michael