Welcome Guest, Not a member yet? Register   Sign In
database problem?
#10

[eluser]Bigil Michael[/eluser]
now i solved my problem like this

Code:
class Home_model extends Model {
public $DB1;
public $DB2;
public function Home_model(){
  parent::Model();
  $this->DB1 = $this->load->database('default', TRUE);
        $this->DB2 = $this->load->database('bangalore', TRUE);
}

Code:
$this->DB1->where('status', '1');
$this->DB1->limit(4, 0);
.
.
$this->DB1->query();


Messages In This Thread
database problem? - by El Forum - 01-27-2012, 12:41 AM
database problem? - by El Forum - 01-27-2012, 02:53 AM
database problem? - by El Forum - 01-27-2012, 03:43 AM
database problem? - by El Forum - 01-27-2012, 06:39 AM
database problem? - by El Forum - 01-27-2012, 10:31 PM
database problem? - by El Forum - 01-28-2012, 01:35 AM
database problem? - by El Forum - 01-29-2012, 10:41 PM
database problem? - by El Forum - 01-29-2012, 11:56 PM
database problem? - by El Forum - 01-30-2012, 01:53 AM
database problem? - by El Forum - 01-30-2012, 02:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB