$now=date('d F Y 23:59:59');
?>
- 00days
- 00hours
- 00mins
- 00secs
$events=[
[ 'title'=>'Tonight We Party!', 'location'=>'Rev Up Hall, NY' ],
[ 'title'=>'Tropical Madness', 'location'=>'Dublin Deck, NY' ],
[ 'title'=>'Bringing Down The House', 'location'=>'Painters, NY' ],
[ 'title'=>'City Lights', 'location'=>'Studio 54, NY' ],
[ 'title'=>'New Years Eve', 'location'=>'Time Square, NY', 'date'=>date('Y-12-31')],
];
$time=strtotime($now);
$nEvent=0;
foreach ($events as $event) {
$nEvent++;
if (isset($event['date'])) {
$t=strtotime($event['date']);
} else {
$t=$time;
$time=strtotime(date('Y-m-d', $time) . ' +1 week');
}
$dow = date('d', $t);
$my = date('M Y', $t);
?>
=$event['title']?>
=$event['location']?>
} ?>