CodeIgniter Forums
Changing database on a controller - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Changing database on a controller (/showthread.php?tid=9296)



Changing database on a controller - El Forum - 06-20-2008

[eluser]FernandoMM[/eluser]
Hello,

I need to change the database that i'm using in the middle of a controller. The name of the database will come as a post var.

Is there a way to do this with codeigniter?

Thanks,

Fernando.


Changing database on a controller - El Forum - 06-20-2008

[eluser]Raiko[/eluser]
You could do it if you name the config the same as what comes from your form