Welcome Guest, Not a member yet? Register   Sign In
It's not return false, If update failed
#4

[eluser]Mareshal[/eluser]
UPDATE returns 0 when query has an error or something, can't connect to database

I would try this

Code:
$this->db->update(table, $data);
$update = $this->db->affected_rows();

if($update == 1)
{
    return TRUE;
}
else
{
    return FALSE;
}

and after you should try

Code:
$this->db->last_query();

good luck


Messages In This Thread
It's not return false, If update failed - by El Forum - 11-26-2009, 01:31 AM
It's not return false, If update failed - by El Forum - 11-26-2009, 02:27 AM
It's not return false, If update failed - by El Forum - 11-26-2009, 02:39 AM
It's not return false, If update failed - by El Forum - 11-26-2009, 03:11 AM
It's not return false, If update failed - by El Forum - 11-26-2009, 03:30 AM
It's not return false, If update failed - by El Forum - 11-26-2009, 03:45 AM
It's not return false, If update failed - by El Forum - 11-26-2009, 03:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB