I\'m running update_batch() on a table in CodeIgniter and I\'d like to check whether it was successful.
I\'ve tried using affected_rows(), but that only counts the n
Use a simple instruction this will return true or false
return $this->db->update_batch("sections", $data, "alias");
$this->db->trans_start();
$this->db->update_batch($table, $update, $variable);
$this->db->trans_complete();
return ($this->db->trans_status() === FALSE)? FALSE:TRUE;
Hope this helps!. Cheers!