'" . date("Y-m-d") . "' ORDER BY EventStartDate ASC"); $lastgroup = ""; while ($rsEvent = mysql_fetch_array($rsEvents)) { $EventYY = date("Y",strtotime($rsEvent['EventStartDate'])); $StartDate = date("d/m/Y", strtotime($rsEvent['EventStartDate'])); $EndDate = date("d/m/Y", strtotime($rsEvent['EventEndDate'])); $EventText = $rsEvent['EventText']; if ($rsEvent['EventStartDate'] == $rsEvent['EventEndDate']) { //ONLY OUTPUT SINGLE DATE $EventDate = $StartDate; } else { $EventDate = $StartDate . " to " . $EndDate; } $thisgroup = $EventYY . " Events"; if($lastgroup != $thisgroup) { ?>

Click here   - -