include "../inc/album.inc.php"; ?>
// Display the photo $id = $_GET['photoID']; $photoQueryResult = retrieve_event_photo($id); list($photoID, $photo_url, $title, $description, $eventID) = mysql_fetch_array($photoQueryResult); echo ""; $result = mysql_query("Select photoID from gns_event_photos where photoID > $id AND eventID = 2 order by photoID limit 1"); if($row = mysql_fetch_assoc($result)) { if($row['photoID'] != $id) { echo "Prev | "; } } echo "Main"; $result = mysql_query("Select photoID from gns_event_photos where photoID < $id AND eventID = 2 order by photoID DESC limit 1"); if($row = mysql_fetch_assoc($result)) { if($row['photoID'] != $id) { echo " | Next"; } } echo "
"; echo "$title
$description