Welcome Guest, Not a member yet? Register   Sign In
how to load multiple databases/models
#4

[eluser]danmontgomery[/eluser]
Take DB out of autoload. You're trying to load two separate database objects into the database object created by autoload. You should be doing this in the controller, not the database object.

Code:
$var = $this->load->database('hot_lotto');
$var2 = $this->load->database('cashg');


Messages In This Thread
how to load multiple databases/models - by El Forum - 02-27-2010, 11:36 AM
how to load multiple databases/models - by El Forum - 02-27-2010, 10:27 PM
how to load multiple databases/models - by El Forum - 03-01-2010, 01:20 PM
how to load multiple databases/models - by El Forum - 03-01-2010, 01:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB