there was a problem

"); $now_date = date("Y-m-d"); $query_dates = "select * from lkup_dates where end_date >= date_sub(now(), interval 30 day) order by begin_date"; $result_dates = mysql_query ($query_dates) or exit (mysql_error("Could not retrieve dates")); $upcoming_dates = "

Upcoming Dates:

\n\n"; $hold_year = 0; $counter_year = 0; $counter_semester = 0; while ($row = mysql_fetch_row ($result_dates)) { list($begin_year,$begin_month,$begin_day) = split("-", $row[0]); list($end_year,$end_month,$end_day) = split("-", $row[1]); $event = $row[4]; $location = $row[5]; $file = $row[7]; if ($row[2] == "00:00:00") {$begin_time = "";} else { list($begin_hour,$begin_minute,$begin_second) = split(":", $row[2]); if ($begin_hour < 12) { $ampm = "AM"; $begin_hour = substr($begin_hour, 1); } elseif ($begin_hour == 12) {$ampm = "PM";} else { $begin_hour -= 12; $ampm = "PM"; } // if (strpos($begin_hour, "0") == 0) // { // $begin_hour = substr($begin_hour, 1); // } $begin_time = "$begin_hour:$begin_minute $ampm"; } if ($row[3] == "00:00:00") {$end_time = "";} else { list($end_hour,$end_minute,$end_second) = split(":", $row[3]); if ($end_hour < 12) { $ampm = "AM"; $end_hour = substr($end_hour, 1); } elseif ($end_hour == 12) {$ampm = "PM";} else { $end_hour -= 12; $ampm = "PM"; } // if (strpos($begin_hour, "0") == 0) // { // $begin_hour = substr($begin_hour, 1); // } $end_time = "$end_hour:$end_minute $ampm"; } if ($hold_year == $begin_year){} else { $upcoming_dates .= "\n"; $upcoming_dates .= "\n"; $upcoming_dates .= "\n"; $hold_year = $begin_year; if ($counter_year < 1) { $header_year = $begin_year; $counter_year++; } } if (substr($begin_month, 0, 1) == 0) { $begin_month = substr($begin_month, 1); } if (substr($end_month, 0, 1) == 0) { $end_month = substr($end_month, 1); } if (substr($begin_day, 0, 1) == 0) { $begin_day = substr($begin_day, 1); } if (substr($end_day, 0, 1) == 0) { $end_day = substr($end_day, 1); } $upcoming_dates .= ""; if (!$begin_time) { $upcoming_dates .= ""; } else { $upcoming_dates .= ""; } $upcoming_dates .= "\n"; if ((preg_match("/Elections/i", $event)) && ($counter_semester < 1)) { $header_semester = $event; $counter_semester++; } } ?>
SGA Voting
$header_semester $header_year"; ?>

 
$begin_year
DateTimeEventLocationFile
$begin_month/$begin_day"; if ($row[0] == $row[1]) {} else { $upcoming_dates .= " - $end_month/$end_day"; } $upcoming_dates .= "   $begin_time"; if (!$end_time) {} else { $upcoming_dates .= " - $end_time"; } $upcoming_dates .= "$event$location$file

Status:

closed.
\n"; } elseif ($registration_status == "OPEN") { echo "Sign-ups are now open. Register Here.
\n"; } if ($vote_status == "CLOSED") { echo "The polls are currently closed.
\n"; } elseif ($vote_status == "OPEN") { echo "The polls are now open. Vote Here.
\n"; } // echo "The polls are currently closed."; echo $upcoming_dates . "

"; ?>

Other Information:

"; echo ""; echo ""; echo ""; } ?>
View candidates and their statements.
PLEASE NOTE: SGA positions are open to all classes, and you
can vote for anyone whose name appears on your ballot.