Re: Database connections

From: Date: Sat, 01 Apr 2006 00:36:27 +0000
Subject: Re: Database connections
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-233028@lists.php.net to get a copy of this message
On 4/1/06, Jim Lucas <lists@cmsws.com> wrote: > Chris 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. > > > the other option here would if he was having to change the user name and > password would be > > http://us2.php.net/manual/en/function.mysql-change-user.php I was going to say I didn't know that function existed, then noticed: 3.0.14 This function was removed from PHP. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#233028) next »