(11-21-2020, 12:23 PM)InsiteFX Wrote: Try using set on the array. PHP Code:public function update_product($product){ $this->db->where('user_name', $lcuser); $data = array('temp_1' => $product); $this->db->set($data); $this->db->update('tbl_members', $data);}
public function update_product($product){ $this->db->where('user_name', $lcuser); $data = array('temp_1' => $product); $this->db->set($data); $this->db->update('tbl_members', $data);}