$otherdb = $this -> load -> database ( 'otherdb' , TRUE ); $id = 4 ; if ( $customeThemeSlug ) { $save [ 'customeTheme' ] = $customeThemeSlug ; $this -> db -> where ( 'id' , $id ); $this -> db -> update ( 'company_info' , $save ); } // $query = $otherdb->select('*')->get('company_info'); $otherdb -> where ( 'id' , $id ); $otherdb -> update ( 'company_info' , $save ); // $query = $otherdb->select('*')->get('company_info'); $otherdb -> where ( 'id' , $id ); $otherdb -> update ( 'company_info' , $save ); $db [ 'otherdb' ] = array ( 'dsn' => '' , 'hostname' => 'localhost' , 'username' => 'root' , 'password' => '' , ...