HI, first time making a website... would really appreciate help with any errors in my code. Thanks!
<div id="site_content">
<div class="sidebar">
<!-- form to select what books would like to be viewed, i.e. what category? -->
<h3>Search Our Library!</h3>
<div class="form_style">
<form action='titleSearch.php' method='GET'>
<center>
<h1>Search Any Book Title: </h1>
<input type='text' size='90' name='search'>
<input type='submit' name='submit' value='Search' >
</center>
</form>
<form action='catSearch.php' method='GET'>
<center>
<h1>Search Book Categories:</h1>
<?php
// make an sql query to show all of the book titles
$titleSQL = "select class, description from l_classification order by class";
// connect to the database
require_once('dbconnect.php');
// execute the query
$rsTitle = mysql_query($titleSQL);
echo "<select name=\"class\">\n";
echo "<option value=\"all\">Show all books</option>";
// loop through all of the book titles in the record set
// while
while($row = mysql_fetch_array($rsTitle)) {
$class = $row['class'];
$description = $row['description'];
echo "\t<option value=\"$class\">$class : $description</option>\n";
}
// each record i'll display as an option in the form
// end loop
?>
<input type='submit' name='submit' value='Search' ></br></br></br></center>
</form>
</select>
</div>
</body>
</html>