• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.