case 'del': $id = (int) $this->input->get("id",true); //$result = $this->db->update("order",array("status"=>0),array("id"=>$id)); $result = $this->db->delete("order",array("id"=>$id));