Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB