Welcome Guest, Not a member yet? Register   Sign In
Database connection groups
#1

[eluser]Billy Khan[/eluser]
I just want to check to make sure....

If i have two db connection groups ("default" and "db2"), and i make a "db2" object, do i need to reset the connection back to default?

Or when i create the db2 connection, i effectively have two connection objects, i.e.

$this->db->blah
// and
$db2->blah

where i can use one straight after the other in the same method and they both connect to their respective databases.
#2

[eluser]Randy Casburn[/eluser]
Hi Bohboh (is that like Bohboh the clown?),

Just make sure that either both DB groups are set to non-persistent connection types or that one only one is set to persistent connection type with the other set to non-persistent. This will keep things operating properly.

Hope this is helpful,

Randy




Theme © iAndrew 2016 - Forum software by © MyBB