Welcome Guest, Not a member yet? Register   Sign In
Is it possible the change the active_group on the fly?
#1

[eluser]RJ[/eluser]
Hello,

The program I built can work on one of two databases (1.x,2.x); Based on a user selection I want to change the active_group to select the correct database.

I know I can change the db with $db = $this->load->database('xxx');

In doing so I would have to go back and change all my queries I believe ($this->db becomes $db->query); so changing the active_group seems to be the best solution... now is it possible?


Messages In This Thread
Is it possible the change the active_group on the fly? - by El Forum - 01-22-2010, 01:42 PM
Is it possible the change the active_group on the fly? - by El Forum - 01-22-2010, 02:23 PM
Is it possible the change the active_group on the fly? - by El Forum - 01-22-2010, 03:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB