Welcome Guest, Not a member yet? Register   Sign In
Multiple Database Commands
#1

[eluser]JingCleoVil[/eluser]
Hi,

I am using multiple database and it function well.

I used this line
Code:
$myDB1 = $this->load->database('default',true);
$data['mydb1_query'] = $myDB1->query("My QUERY HERE");

$myDB2 = $this->load->database('other_db',true);
//Same us the above query

However, i cant used this command
Code:
$data['mydb1_query'] = $myDB1->get('table_name');
It says
"Fatal error: Call to undefined method CI_DB_mysql_driver::get()...."

I want to use commands like $this->db->get(), $this->db->select() and etc...

Any idea? Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB