Welcome Guest, Not a member yet? Register   Sign In
Session to Database + Multiple Database
#2

[eluser]XMadMax[/eluser]
Samjo,

Code:
$this->CI->load->database('stuff', TRUE);

This load the stuff configuration, and returns the pointer to this connection. You must use:

Code:
$this->stuffdb = $this->CI->load->database('stuff', TRUE);

And use $this->stuffdb instead of $this->db

Also, another solution would be to create a db function inside session. When $this->db are called, you can return your own database, instead of default database.

Xavier


Messages In This Thread
Session to Database + Multiple Database - by El Forum - 06-01-2013, 07:17 AM
Session to Database + Multiple Database - by El Forum - 06-03-2013, 12:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB