Welcome Guest, Not a member yet? Register   Sign In
db->update error: You must use the "set" method to update an entry.
#1

[eluser]stormbytes[/eluser]
I'm trying to update an entry in a database using:

Code:
$row = array('id' => '5', 'name' => 'john');

$this->db->where('id', '5');
$this->db->update($row);

And it's returning this error:

You must use the "set" method to update an entry.
#2

[eluser]stormbytes[/eluser]
Bah! Forgot the table name in the update stmt. I need to stop working so late!
#3

[eluser]wiredesignz[/eluser]
Yeah, you do! Smile




Theme © iAndrew 2016 - Forum software by © MyBB