7){ dohead($head); $message = "There is no story for the page to display.
If the problem persists e-mail webmaster@theglasgowstory.com quoting error code TGSEU002.
"; error($head, $message, $back, $backtext); } if(!$id) { dohead($head); $message = "No story was selected."; error("Problem!", $message, $back, $backtext); } $back = "../story/?id=".$id; //query to get further reading from DB try{ $q = "select reading from essay where enum = :id"; $stmt = DB::getInstance()->prepare($q); $stmt->bindParam(':id',$id,PDO::PARAM_STR,7); $stmt->execute(); $read = $stmt->fetch(); } catch(PDOException $e){ dohead($head); $message = "Database error."; drop_session(); error($head, $message, $back, $backtext); } /******* * HTML * *******/ format_pre("N", "Further Reading"); ?>

Further Reading

Return to Story

"); if (!$read["reading"]) echo("

No further reading for this story.

"); else echo(stripslashes($read["reading"])); format_post("id",$id);