I want to update my table where the input the same input fields names are array and has add more function which generates the input fields like this:
I want to do update_batch in codeigniter my model i created a function like this: This is the code block:
function update_batch_all($tblname,$data=array(),$userid)
{
$this->db->trans_start();
$this->db->where('userid',$userid);
$this->db->update_batch($tblname,$data);
$this->db->trans_complete();
return TRUE;
}
it is not working. can any one help me that how can i update tables data with update batch that has where condition?