• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
You must use the "set" method to update an entry.

#4
PHP Code:
public function update($table$where$data)
{
 
   $this->db->set($data);

 
   $this->db->where($where);
 
   echo $this->db->get_compiled_update($table$data);
 
   return $this->db->affected_rows();

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: You must use the "set" method to update an entry. - by InsiteFX - 11-27-2016, 04:00 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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