[eluser]Unknown[/eluser]
Hi All! I need some help.
I want to access multiple database simultaneously.
the default database info in situated in config/database.php file.
which i am able to access as
$this->db->get('table')
but in my project, when i login in a user, at that moment i need to connect to another remote database manually by giving database info ( like username, pass, db, etc).
so i want that similarly like
$this->db, i should be able to use
$this->db_remote, where db_remote will be the manually loaded database.
right now i am able to connect to the second remote database, but i have to load it everytime in all class.
I want that once its loaded i should get access to both db through out the code. some thing like:
$this->db for local db &
$this->db_remote for manually loaded remote db.
Please help me...
Thanx in advance.