Welcome Guest, Not a member yet? Register   Sign In
Database activate records delete
#3

[eluser]Aken[/eluser]
The delete() active record command will only return false if there is an error in the SQL statement. If the statement is valid but does not apply to any rows in your database, it will still process correctly and return true, it just won't delete anything because it didn't match.

As toopay said, use the affected_rows() method to check to see if anything was affected.


Messages In This Thread
Database activate records delete - by El Forum - 08-11-2011, 01:21 PM
Database activate records delete - by El Forum - 08-11-2011, 04:26 PM
Database activate records delete - by El Forum - 08-12-2011, 04:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB