Re: Database connections

From: Date: Fri, 31 Mar 2006 04:08:10 +0000
Subject: Re: Database connections
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-232981@lists.php.net to get a copy of this message
On 3/30/06, Chris <dmagick@gmail.com> wrote: > > Jasper Bryant-Greene wrote: > > Chris wrote: > > > >> If they're accessing the same database you don't need to > >> disconnect/reconnect. Different db's - well, yeh you don't have a > choice. > > > > > > Of course you do. mysql_select_db() or whatever it's called. Or just > > issue a USE [databasename] query. No need to reconnect! > > > > Only if you are using the same username/password, but you're right, it > is an option. php5 still has the mysql_pconnect method for persistent database connections: http://us2.php.net/mysql_pconnect -- > Postgresql & php tutorials > http://www.designmagick.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html

« previous php.general (#232981) next »