Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function update_data_facility() {
- $id = $this->input->post('id');
- for($i=0; $i<count($id); $i++){
- $status = !isset($this->input->post('check')[$id[$i]])?0:1;
- $q = "UPDATE hom_facility SET facility_check='".$status."' WHERE facility_id= " . $id[$i];
- $this->db->query($q);
- }
- }
Add Comment
Please, Sign In to add comment