Menu
Hi i have this code (below), I would like it to select the years 1810 to 1820 from field YEAR… then output it to the page.. BUT i have a next/previous that can view each record.. any ideas?
[code=php]<?
require ‘db_connect.php’;
$query = “SELECT * FROM PLATE_BG_CHRISTMAS”;
$result = mysql_query($query) or die(“Error: ” . mysql_error() . ” with query $query”);
if (!$result) {
$message = ‘Invalid query: ‘ . mysql_error() . “n”;
$message .= ‘Whole query: ‘ . $query;
die($message);
}
while ($row = mysql_fetch_assoc($result)) {
echo $row[‘DESCRIPTION’];
mysql_free_result($result);
?>