Re: DB and mysql_select_db
| From: | Hans L | Date: | Thu, 22 Jul 2004 16:03:02 +0000 |
| Subject: | Re: DB and mysql_select_db | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32253@lists.php.net to get a copy of this message | ||
Jan Rosier wrote:
Why does DB/mysql.php make a call to mysql_select_db before every query ( see simpleQuery($query) ) ? Seems unnecessary to me, since the php manual stats that after calling mysql_select_db once, every subsequent call to mysql_query() will be made on the active database.Yes ... so imagine if you want to use multiple databases in a script. That's why. Hans