New Jersey Off Highway Vehicle Association

Upcoming Events Schedule.

Back to Main Page:

Error number:" . $MySQLErrorNum . ", " . $MySQLErrorTxt . "\n"); return(0); } if (!(mysql_select_db("kiasapsy_OHV", $DBHandle))) { echo ("
Error:Could not select kiasapsy_OHV database." . "\n"); return(0); } $SQLString = "SELECT * FROM `Events` WHERE `Date` >= \"" . date("Y-m-d") . "\" ORDER BY `Date`"; $ResultsPointer = mysql_query($SQLString, $DBHandle); if ($ResultsPointer != FALSE) while ($RowData = mysql_fetch_array($ResultsPointer)) { //Table Setup echo("\n"); echo(" "); echo(" \n"); echo(" \n"); echo(" \n"); echo(" \n"); //Event Date echo(" \n"); //Event Heading echo(" \n"); //Alter Info if any if (!is_null($RowData[Alert])) { echo(" \n"); } //Event Details echo(" \n"); //User echo(" \n"); echo("
\n"); echo(NiceDateOutput($RowData[Date]) . "\n"); echo("
\n"); echo("
\n"); echo(PrepStrForOut($RowData[Event]) . "\n"); echo("
\n"); echo("
\n"); echo(PrepStrForOut($RowData[Alert]) . "\n"); echo("
\n"); echo("
\n"); echo(PrepStrForOut($RowData[Details]) . "\n"); echo("
\n"); echo("
\n"); echo("Posted By: " . PrepStrForOut($RowData[User]) . "\n"); //Date Posted/Updated echo(" \n"); echo("Posted/Updated On: " . PrepDateForOut($RowData[Posted]) . "\n"); echo("
\n"); echo(" \n"); echo("ID: " . PrepStrForOut($RowData[ID]) . "\n"); echo("

\n"); } echo ("
\n"); echo (" " . mysql_num_rows($ResultsPointer) . " event(s) in database.

\n"); mysql_close($DBHandle); ?>