1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22:
$currentdate = fecha (“Y-m-d "); $event_query = “SELECCIONAN * de los acontecimientos DONDE el >= “orden de $currentdate” de StartDate Y de Approved='1 de StartDate LIMIT 5”; $event_query_result = mysql_query ($event_query); si (mysql_num_rows ($event_query_result) > 0) { $i =0; mientras que ($event_row = mysql_fetch_assoc ($event_query_result)) { $event_id = $event_row [“IDENTIFICACIÓN”]; $event_name = $event_row [“nombre”]; $event_date = $event_row [“StartDate”]; $event_time1 = $event_row [“DisplayTime”]; $event_location = $event_row [“localización”]; $event_time = mysql2timestamp ($event_date); $event_display_date = fecha (“D, F j, o”, $event_time); eco “$event_display_date”