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