[eluser]slaytorson[/eluser]
[quote author="rogierb" date="1265031686"]Easy, store the database info(host, username, password etc) in the database.
Get the database info.
Populate the config array.
Load the new database into a unique name with the config array.
Use it.
I do this with x databases, where depending on user 1->n databases are loaded.
My models use a connection string eg. $this->some_db, $this->another_db, instead off the useall $this->db
Code:
public function some_model_function($connection, $var1)
{
$connection->where('id',$var);
return $connection->get('table');
}
[/quote]
So I would need to create a new custom module? I'm new to CI. However, learning pretty quickly. Could you give me more details.
Thanks!