Jump to content


carloscandreva

Member Since 04 Jun 2013
Offline Last Active Jun 24 2013 04:52 PM
-----

#7841 Question: How to make a dynamic switch database?

Posted carloscandreva on 06 June 2013 - 11:54 AM

This answer resolves perfect my problem xD, thank you very much,sorry about the newbie question. I need multiple databases because of a strange rule of the system that forces me log into a database to see which client will use the system and after this, log into a database specific of this cliente, well with this will resolve all 

 

$dsn = 'dbdriver://username:password@hostname/database';

$this->load->database($dsn);

 

Thank you again :D