include "../inc/db.inc.php"; $adminPage = true; include "../inc/header.php"; $id = $_GET['photoID']; if($id) { $result = mysql_query("SELECT eventID from gns_event_photos WHERE photoID = '$id'"); $row = mysql_fetch_assoc($result); $eventID = $row['eventID']; $result = mysql_query("DELETE from gns_event_photos WHERE photoID = '$id'"); if($result) { $mess = "