<?php require './security.php'; include_once '../scripts/DBAccess.php'; $eventID = $_GET['id']; $eventErrorText = ""; if (!is_numeric($_GET['id'])) { die; } DBAccess::deleteEvent($eventID); header("Location: ./manageEvent.php");