I am using codeigniter update_batch
function.
I want to pass an array as the third parameter (where clause) to update_batch
.
$data = array(
array(
'title' => 'My title' ,
'name' => 'My Name 2' ,
'date' => 'My date 2'
),
array(
'title' => 'Another title' ,
'name' => 'Another Name 2' ,
'date' => 'Another date 2'
)
);
Instead of this:
$this->db->update_batch('mytable', $data, 'title');
I want to do this:
$this->db->update_batch('mytable', $data, array('title','name'));
So multiple where conditions added.
Is this possible?