strtotime($gigDate)){ $event++; } } $today = date("Y-m-d"); while($event < count($gig)){ $gigDay = sprintf('%02d',$gig[$event][day]); $gigMonth = sprintf('%02d',$gig[$event][month]); $gigYear = sprintf('%4d',$gig[$event][year]); $gigLocation = sprintf($gig[$event][location]); $gigDescription = sprintf($gig[$event][description]); $gigEvent_link = sprintf($gig[$event][event_link]); $gigTicket_link = sprintf($gig[$event][ticket_link]); $gigDateprint = "$gigYear-$gigMonth-$gigDay"; echo "
\n\t"; if ($today == $gigDateprint){ echo "
TODAY
\n"; }; echo "
\n\t\t"; echo "
"; if ($gigEvent_link != null){ echo "\n\t\t"; }; echo "$gigDescription"; if ($gigEvent_link != null){ echo "\n"; }; echo"
\n\t"; echo "
\n\t"; if ($gigTicket_link != null){ echo "\n"; }; if ($gigEvent_link != null){ echo "\n\t\t"; }; echo "
\n
"; echo "

\n\n"; $event++; }; ?>