Welcome Guest, Not a member yet? Register   Sign In
connect to multiple databases
#5

[eluser]Unknown[/eluser]
Only in case someone else runs across this thread as I did.

It is not that the last database information entered is the one loaded. Whatever connection is set to $active_group is the one that is automatically loaded. Hence when it is repeated the latest is the one stored.

$active_group and $active_record only need to be set once, ideally at the top. This lets you change the default database on the fly by changing one variable.


Messages In This Thread
connect to multiple databases - by El Forum - 02-16-2010, 03:27 AM
connect to multiple databases - by El Forum - 02-16-2010, 03:38 AM
connect to multiple databases - by El Forum - 02-16-2010, 03:40 AM
connect to multiple databases - by El Forum - 02-16-2010, 04:12 AM
connect to multiple databases - by El Forum - 02-24-2010, 08:47 PM
connect to multiple databases - by El Forum - 04-17-2012, 06:00 AM
connect to multiple databases - by El Forum - 07-10-2012, 08:50 AM
connect to multiple databases - by El Forum - 08-02-2012, 03:35 AM
connect to multiple databases - by El Forum - 08-15-2012, 07:45 AM
connect to multiple databases - by El Forum - 12-18-2013, 11:30 PM
connect to multiple databases - by El Forum - 07-03-2014, 06:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB