Helping to modify windate code

I have this code

<?php print $windateformatted; ?>

responsible for output the dates of games
I would like to modify it to output only different dates instead keeping repeated the same dates
I mean if there are same dates print first one
I tried many way but it did not work

part of code:

$queryscores .= ’ ORDER BY wintime DESC’;
$resultscores=mysql_query($queryscores);
$numscores=mysql_num_rows($resultscores);
while ($scores = mysql_fetch_array($resultscores, MYSQL_ASSOC)) {
$windateheader=$scores[‘windate’];
$windateformatted=date(“F d, Y”,$windateheader);
$wintime=$scores[‘wintime’];
$hour=date(‘g’,$wintime);
$minute=date(‘i’,$wintime);
$ampm=date(‘a’,$wintime);
?>


<?php print $windateformatted; ?>

I noticed your date field is called data
Is that intentional? It seems like it would cause at worst bugs at best confusion

Hello @ fight_dragons
honestly,
The script not mine, I do not know why the developer made that.
as I know the code responsible for the date one of these
$windateheader=$scores[‘windate’];
$windateformatted=date(“F d, Y”,$windateheader);