= '" . date("Y-m-d") . "' AND start_date < '2999-00-00' AND class_name = 'Five-Day' ORDER BY start_date"); while($row = mysql_fetch_array($result1)) { $row['start_date'] = date("M j", strtotime($row['start_date'])) . " - " . date("j", strtotime($row['end_date'])) . ", " . date("Y", strtotime($row['start_date'])); if ($row['full'] == 'N') { echo "document.write(\"" . $row['start_date'] . "
\");\n"; } else { echo "document.write(\"" . $row['start_date'] . " (Standby Only)
\");\n"; } } mysql_close($con); ?>