Welcome Guest, Not a member yet? Register   Sign In
mysql multiple connections can use same pconnect causing grief.
#9

[eluser]jeephnx[/eluser]
I wanted a controller to drop the connection to an auto loaded DB and reconnect to an alternative one. Just running $this->load->database('new_group_name') in the controller didnt work as it skips if it has already been loaded. The solution I use is to destroy the current db class using unset($this->db) and then running $this->load->database('new_group_name').
Works for me with MySQL.


Messages In This Thread
mysql multiple connections can use same pconnect causing grief. - by El Forum - 09-07-2010, 11:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB