Welcome Guest, Not a member yet? Register   Sign In
Multiple Database Question
#6

[eluser]louis w[/eluser]
I never got it to work with two databases in the same model. I moved the second db call out to the controller.

trs21219, that is pretty much what I tried except I was not storing my $db_teaser in the controller. But does this work for you?

Code:
$this->db->query();
$this->db_teaser->query();
$this->db->query();

The problem I was having was using the $this->db after the $db_teaser. Because $db had turned into the connection to db_teaser.

I will give it another shot this afternoon however and see if i have any luck. I will let you guys know.


Messages In This Thread
Multiple Database Question - by El Forum - 01-22-2009, 09:17 AM
Multiple Database Question - by El Forum - 01-22-2009, 09:18 AM
Multiple Database Question - by El Forum - 01-26-2009, 04:49 PM
Multiple Database Question - by El Forum - 01-26-2009, 05:44 PM
Multiple Database Question - by El Forum - 01-26-2009, 07:52 PM
Multiple Database Question - by El Forum - 01-27-2009, 08:49 AM
Multiple Database Question - by El Forum - 01-27-2009, 09:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB