Coming events

Click here to insert your own event info: \n\n"); $db = mysql_login(); $now = time(); $query="SELECT * FROM events WHERE (endDate > CURRENT_DATE) ORDER BY endDate"; $result = mysql_query($query); if (mysql_errno()) { die("
" . mysql_errono() . ": " . mysql_error() . "
"); } mysql_close(); $numRows = mysql_numrows($result); if ($numRows < 1) { print "

Sorry, but there were no events found in our database..."; } else { print("

"); $row=0; while ($row < $numRows) { $eventID = mysql_result($result, $row, "id"); $startDate = mysql_result($result, $row, "startDate"); $endDate = mysql_result($result, $row, "endDate"); if ($startDate == $endDate) $dateString = FormatTheDate($startDate, 2); else $dateString = FormatTheDate($startDate,2) . " to " . FormatTheDate($endDate, 3);; $title = mysql_result($result, $row, "title"); print("\t — $title    $dateString
\n"); ++$row; } print("

\n"); } ?>