Re: General Mysql Connect

From: Date: Thu, 30 Oct 2008 01:00:05 +0000
Subject: Re: General Mysql Connect
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-282604@lists.php.net to get a copy of this message
The answer in your case is not to combine the DBs necessarily, but consolidate the connections used. Like I said, you can use 2 MySQL DBs on the same connection in PHP. There's no reason to sacrifice separation of data.
Forgot about this one until now.. mysql also supports the extended syntax: db.tablename.fieldname so that'd save switching db's too. Of course that depends on the same user having access to both db's, but that's the same as doing a select_db anyway. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#282604) next »