![]() |
DB update - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: DB update (/showthread.php?tid=30813) |
DB update - El Forum - 05-26-2010 [eluser]bennyhill[/eluser] I am updating a database record if it matches a where clause. How do I tell if the update happen? In other words how do I tell that a record actually was affected? DB update - El Forum - 05-26-2010 [eluser]Aidy[/eluser] Code: $this->db->affected_rows() User guide http://ellislab.com/codeigniter/user-guide/database/helpers.html DB update - El Forum - 05-26-2010 [eluser]bennyhill[/eluser] sh#t sorry didn't look in the helper classes. Thanks. |