Re: mysql_db_query and the future?

From: Date: Sat, 23 Feb 2002 15:13:58 +0000
Subject: Re: mysql_db_query and the future?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85938@lists.php.net to get a copy of this message
You can add the database to your query. Such as: SELECT * FROM database.table WHERE stuff=other_stuff; I am not sure what other databases support this notation but I know that MySQL does. Eric On Sat, 23 Feb 2002, Thomas Seifert wrote: > Hi folks, > > just wondering, why the mysql_db_query is being abandoned and called > "deprecated" ? > > With the current implementation of the mysql_connect I have a problem > with using 2 databases with the same username/password. > PHP will use the same connection and so only use one of the two > databases :-(. > > Is there any other way than always calling mysql_select_db before making > a query? > I was used using an abstraction layer with a class for each connection > which used also mysql_db_query for the query so that I could use each > class on a different database (but with the same connection parameters). > > Is there a speed penalty in using the combination of > mysql_select_db();mysql_query ... compared against mysql_db_query? > > > Thanks a lot for already reading this ;-) > > Thomas > > > -- Eric Thelin erict@aztechbiz.com AZtechBiz.com: Where Arizona Does Tech Business

« previous php.general (#85938) next »