public function update_row(){ $update_rows = array('field-name' => 'field-data',); $this->db->where('id', 1 ); $this->db->update('table-name', $update_rows); }
public function update_row(){ $update_rows = array('name' => 'rincky'); $multipleWhere = array('id' => $ids, 'name' => $name, 'status' => 1 ); $this->db->where($multipleWhere); $this->db->update('user', $update_rows); }