Welcome Guest, Not a member yet? Register   Sign In
$this->db->update() not working for me
#1

[eluser]Robert May[/eluser]
No idea why, but this query doesn't work (nor does any alteration on it using set() or where()). If you replace update() with insert() it works more as you would expect.

$this->db->update(self::MODEL_TABLE, array('retrieved' => 1), array('id' => $entry->id));

Any ideas as to what's wrong?
#2

[eluser]überfuzz[/eluser]
[quote author="Robert May" date="1252526815"]No idea why, but this query doesn't work (nor does any alteration on it using set() or where()). If you replace update() with insert() it works more as you would expect.

$this->db->update(self::MODEL_TABLE, array('retrieved' => 1), array('id' => $entry->id));

Any ideas as to what's wrong?[/quote]
Hard to say without seing the MySQL string, but you might wanna read up on WHERE.




Theme © iAndrew 2016 - Forum software by © MyBB