Welcome Guest, Not a member yet? Register   Sign In
Active record Update issue
#2

[eluser]mironcho[/eluser]
Hi chinedubond, update method doesn't return query object. You can use affected_rows() method instead:
Code:
if ($this->db->affected_rows() > 0)
{
    return true;
}
else
{
    return false;
}


Messages In This Thread
Active record Update issue - by El Forum - 06-04-2008, 11:58 AM
Active record Update issue - by El Forum - 06-04-2008, 01:26 PM
Active record Update issue - by El Forum - 06-04-2008, 01:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB