queryRow($sql); extract($adventures_array); $title="Book of Mormon Adventures - $story_title - $header"; include("topnav.php"); echo "

$story_title - $header

\n"; echo "
\n"; echo "

".str_replace("\n","

\n

",$text)."

"; $sql = "SELECT id, header FROM boma_chapters WHERE story = $story AND id = ".($chapter_id+1); $rs = $db->query($sql); if($rs->numRows()) { $chapters_array= $rs->fetchRow(); echo "

".$chapters_array['header']."

"; } else echo "

The End

"; echo "
"; include("endnav.php");