I am trying to update one record with the active codeigniter record and it still fails.
$data = array('status' => 1);
$this->db->where('field1', $info);
$this->db->update('example', $data);
$this->db->limit(1);
When I start updating all database fields. Doing $ this-> db-> last_query () won't show me the limit
What is a mistake?
source
share