CodeIgniter does not update the database when update_string() is called
this is model function
$st);
$where = "id=" . $id;
$this->db->update_string('gallery', $data, $where);
return $this->db->affected_rows();
}
}
Everything is working fine. I am also getting 2 parameter values in the submission payload, but the table update fails. The affected rows is 0.