header("Content-Type: application/xhtml+xml"); ?>
This Page Moved
list($date) = split('\.', $page);
list($date) = split('b', $date);
list($date) = split('c', $date);
//$date = str_replace("-"," ",$date);
//print "You attempted to access $page. Date: $date.
\n";
if (preg_match("/^\d\d\d\d-\d\d-\d\d$/",$date))
{
//print "Date is good.
\n";
} else {
print "\n";
exit;
}
$db = mysql_connect("localhost","root","mysqlf00") or die("Could not connect to db.");
if (mysql_select_db("adventures",$db))
{
// print("Database opened successfully.
\n");
} else {
printf("Error opening database: %s.
\n", mysql_error());
}
$result = mysql_query("SELECT date, num, title FROM entries WHERE date='$date'",$db);
$myrow = mysql_fetch_array($result);
$records = mysql_affected_rows();
//print "Records: $records.
\n";
if ($records == 0)
{
print "