\n"; if (preg_match("/^\d\d\d\d-\d\d-\d\d$/",$date)) { //print "Date is good.
\n"; } else { print "
I do not know where to find what you are looking for. Please email me.

View Adventures Index
Return to Darxus' Home Page
\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 "
\nI can't figure out what you're looking for. Please email me.

View Adventures Index
Return to Darxus' Home Page\n"; } elseif ($records == 1) { print "\n
\n"; print "This page has moved to $myrow[title]

View Adventures Index
Return to Darxus' Home Page\n"; } else { print "
This page has been split into the following:
\n"; print "\n"; do { echo("\n"); } while($myrow = mysql_fetch_array($result)); echo("
$myrow[date]$myrow[title]
\n"); print "

View Adventures Index
Return to Darxus' Home Page"; } ?>