[eluser]jdav3579[/eluser]
Hi,
I have checked the docs for this answer, but can't seem to get this to work.
I have the folowing code, but in the getPage function it always attempts to use $db2 where it should be trying to use $db1.
Any help kindly appreciated!
John
class content extends Model{
var $db1;
var $db2;
function content(){
parent::Model();
$this->db1=$this->load->database('default', TRUE);
$this->db2=$this->load->database('group2', TRUE);
}
function getPage($parent, $heading){
$query=$this->engine->query("SELECT * FROM content ");
return $query->row_array();
}
}