//page for displaying the further reading. session_start(); /*********************************************** * Copyright (c) 2002-4 TheGlasgowStory & HATII * * Written by Brian Aitken * ***********************************************/ include("error.inc"); include("staff/connect.php"); include("session.inc"); include("logon.php"); include("inc.inc"); //assign error stuff $head = "An error has occurred with TheGlasgowStory"; $back = "index.php"; $backtext = "Either click your browser's 'back' button or click on this link to return to TheGlasgowStory index page"; if(!$id) { dohead($head); $message = "No story was selected."; error("Problem!", $message, $back, $backtext); } $back = "story.php?id=".$id; //query to get further reading from DB $read = mysql_query("select reading from essay where enum = '$id'"); if (!$read) { dohead($head); $message = "Database Error"; error("Problem!", $message, $back, $backtext); } $read = mysql_fetch_array($read); /******* * HTML * *******/ format_pre("N", "Further Reading", $feature, $_COOKIE); ?>
No further reading for this story.
"); else echo($read[reading]); format_post($select_num, $user, "reading.php?id=".$id);