[ACCEPTED]-Update with limit 1 in codeigniter use active record-activerecord
Accepted answer
Move the limit before the update which should 1 be always called last:
$this->db->limit(1);
$this->db->update('example', $data);
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.