Welcome Guest, Not a member yet? Register   Sign In
Close Autoloading Database and open a new one
#1

[eluser]lkoreality[/eluser]
I am autoloading database "db1".. but I want a separate section of the site to be completely sealed off from that. I want to close off that connection and open a new one with a different database "db2".

How can I do this?

Luke
#2

[eluser]Mike Ryan[/eluser]
Hi Luke,

Code:
$this->db->close();
//or
$DB1->close();

should do it. It will disconnect you from the DB, so you would need to reconnect to it before it becomes accessible again.
#3

[eluser]lkoreality[/eluser]
Awesome. thanks.. I found a way around it!




Theme © iAndrew 2016 - Forum software by © MyBB