CodeIgniter Forums
multiple dabases - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: multiple dabases (/thread-36695.html)



multiple dabases - El Forum - 12-11-2010

[eluser]hcri50[/eluser]
Can I use CodeIgniter to connecting to multiple databases configurartion?

At present time, I have multiple tables for different hospitals configured to one database.
By using the prefix I have successfully simplified the process for reading and writing to the database.
Is it possible to configure it to multiple databases within? or do I need to duplicate codeIgniter for this?

Sincerely,
robert


multiple dabases - El Forum - 12-11-2010

[eluser]michalsn[/eluser]
Yes, you can configure CI to use multiple databases http://ellislab.com/codeigniter/user-guide/database/connecting.html


multiple dabases - El Forum - 12-11-2010

[eluser]hcri50[/eluser]
THANK YOU VERY MUCH.
I am extremely impressed with CodeIgniter.
this is truly becoming the HolyGrail for doing anything with databases.

Thank you again
robert