require_once '../nephi_obadiah.php'; $id=intval($_GET['id']); $sql="SELECT * FROM boma_stories WHERE id = $id"; $row = $db->queryRow($sql); if(!$id || is_null($row)) { header("Location: ./"); die; } extract($row); $story_title=$title; $title="Book of Mormon Adventures - $title"; include("topnav.php"); echo "
$story_title
\n"; echo "Written by $name
\n"; if($introduction!='') { echo "\n"; echo "\n"; } echo "".str_replace("\n","
\n",$introduction)."
"; echo "