I'm diving into multiple database usage. According to the codeigniter user guide. To connect to the additional databases use use the following
$db2 = $this->load->database('second');
then to interact use,
$db2->get('second_table');
I'm receiving a Fatal error call to a member function "where()" on a non-object.
for the following line
$db2->where('field1', $data['item']);
and also for
$db2->get('second_table');
Where am I going wrong with this?
Thanks for any help.
trueto return the database object. codeigniter.com/user_guide/database/connecting.html