= " . $startTimestamp . " AND UNIX_TIMESTAMP(dateField) <= " . $endTimestamp . " AND internal_display_only=0 "; $sql .= "ORDER BY UNIX_TIMESTAMP(dateField) ASC"; // Open Database Connection $dbLink = mysql_connect($dbHost, $dbUser, $dbPass); if (!$dbLink){ die ("Database: Couldn`t connect to mySQL Server"); } mysql_select_db($dbName, $dbLink) or die ("Database: Couldn`t open Database"); // Read in Records from Database $dbResult = mysql_query($sql, $dbLink) or die ("MySQL Error: " . mysql_error() ); $numRecords = mysql_num_rows($dbResult); for($i=0;$i < $numRecords;$i++){ $temp = mysql_fetch_assoc($dbResult); if (!get_magic_quotes_gpc()) { $temp['title'] = stripslashes($temp['title']); $temp['body'] = stripslashes($temp['body']); } $records[] = $temp; } // Close Database Connection mysql_close($dbLink); ?>
|
||||||||||||||||||||||||||||||||||
|
0) { // Show if recordset empty ?>
Summer Office Hours |
|||||||||||||||||||||||||||||||||
|
NOTICE OF NON-DISCRIMINATION POLICY AS TO STUDENTS: John Milledge Academy admits students of any race, color, or nationality to all the rights, privileges, programs, and activities generally accorded or made available to students at the school. It does not discriminate on the basis of race, color, nationality, or ethnic origin in administration of its educational policies, scholarship and loan programs, athletics, and other school administered programs. |