1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22:
$currentdate = data (“Y-m-d "); $event_query = “SELECIONAM * dos eventos ONDE o >= ordem “de $currentdate” de StartDate E de Approved='1 por StartDate LIMITE 5”; $event_query_result = mysql_query ($event_query); se (mysql_num_rows ($event_query_result) > 0) { $i =0; quando ($event_row = mysql_fetch_assoc ($event_query_result)) { $event_id = $event_row [“IDENTIFICAÇÃO”]; $event_name = $event_row [“nome”]; $event_date = $event_row [“StartDate”]; $event_time1 = $event_row [“DisplayTime”]; $event_location = $event_row [“posição”]; $event_time = mysql2timestamp ($event_date); $event_display_date = data (“D, F j, o”, $event_time); eco “$event_display_date”