mysql_db_query and the future?
| From: | Thomas Seifert | Date: | Sat, 23 Feb 2002 12:25:56 +0000 |
| Subject: | mysql_db_query and the future? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85937@lists.php.net to get a copy of this message | ||
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