Re: [Phplib-users] db_mysql.inc connect() & multiple databases
Brought to you by:
nhruby,
richardarcher
From: Richard A. <rh...@ju...> - 2002-07-20 00:27:24
|
At 15:38 -0400 19/7/02, Mike Gifford wrote: >I'm just looking at db_mysql.inc now and it looks to me like it is >structured such that the database criticals need to be hard coded into >the defaults for the file: This works for me: $db = new DB_SQL; $db->Host = "localhost:3306"; $db->Database = "test"; $db->User = "tester"; $db->Password = "testing"; $db2 = new DB_SQL; $db2->Host = "localhost:3306"; $db2->Database = "test2"; $db2->User = "tester"; $db2->Password = "testing"; ...R. |