connect_error) { die('Connect Error (' . $mysqli->connect_errno . ') '. $mysqli->connect_error); } $soon_sql= "SELECT * FROM event_table WHERE event_time >= NOW() ORDER BY event_time DESC;"; $past_sql= "SELECT * FROM event_table WHERE event_time <= NOW() ORDER BY event_time DESC; "; $soon_result = $mysqli->query($soon_sql); $past_result = $mysqli->query($past_sql); ?> TEDxPolyU