What else is in our Library

Choose a Book Genre

*Database Status: Connection Success!
*The time is now: 6:39 PM EST.

EDT
5.2.8

Source Code for Current Page

<?php $siteName 'LzyDaz Designs<br /><em><span class="white-text">www.lzydaz.com</span></em>'?>
<?php 
include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/week6/includes/bookFunctions.php'); ?>
<?php $genres 
getGenres(); ?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Book Genres</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="../common/site.css" rel="stylesheet" type="text/css" />
<link href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week5/common/week5.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="head">
<p><?php echo $siteName?></p>
</div><!--close #head-->

<div id="wrap">
<div id="content">

<div id="bar-nav">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/bar-nav.php'); ?>
</div><!--close bar-nav-->

<div id="library">

<div id="navcontainer">
<ul> 
<li><a href="../week6.php" title="Return to Main">Main</a></li>
<li class="last"><a href="library.php" title="Book Display">Library</a></li>
</ul>
</div><!-- close navcontainer -->

<h1>What else is in our Library</h1>

<form method="get" action="displayBooks.php">
  <table> 
    <tr> 
      <td><p>Choose a Book Genre</p></td>
      <td>  
         <select name='genre'>
            <?php foreach($genres as $genre) { 
                echo 
"<option value='" $genre['genreID'] . "'>" $genre['genre'] ."</option>\n";
            }
?>
            </select>
       </td> 
    </tr> 
    <tr><td></td> <td><input name="submit" type="submit" value="Get Books!" /></td></tr> 
  </table> 
</form> 
</div><!--close #library-->

<p><span class="note">*Database Status:</span> <?php print testConnection(); ?><br />
<span class="note">*The time is now:</span> <?php echo date("g:i A"); ?> EST.</p>

</div><!--close #content-->
</div><!--close #wrap-->

<div id="foot">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/copyright.php'); ?>
</div><!--close #foot-->
<div id="source">
<?php echo date("T"); ?>
<hr />
<?php echo phpversion(); ?>
<hr />
<p>Source Code for Current Page</p>
<?php show_source(basename($_SERVER['PHP_SELF'])); ?>
</div><!--close #source-->

</body>
</html>