DB update |
[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?
[eluser]Aidy[/eluser]
Code: $this->db->affected_rows() User guide http://ellislab.com/codeigniter/user-gui...lpers.html
[eluser]bennyhill[/eluser]
sh#t sorry didn't look in the helper classes. Thanks. |
Welcome Guest, Not a member yet? Register Sign In |