Welcome Guest, Not a member yet? Register   Sign In
DB update
#1

[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?
#2

[eluser]Aidy[/eluser]
Code:
$this->db->affected_rows()

User guide

http://ellislab.com/codeigniter/user-gui...lpers.html
#3

[eluser]bennyhill[/eluser]
sh#t sorry didn't look in the helper classes. Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB