public function disable($dose_id) { $this->load->database(); $query = $this->db->query("UPDATE dose SET Active='0' WHERE id='{$dose_id}'"); $results = Dose::getDose($dose_id); //$this -> session -> set_userdata('message_counter','2'); $this->session->set_userdata('msg_error', $results->Name . ' was disabled!'); $this->session->set_flashdata('filter_datatable', $results->Name); //Filter redirect('settings_management'); }