# $q = mysqli_query($db, "SELECT count(distinct(`nr`)) from cwops_log where `mycall`='$c' and year=2021"); # roll over => keep last year's scores
$q = mysqli_query($db, "SELECT count(distinct(`nr`)) from cwops_log where `mycall`='$c' and year=YEAR(CURDATE())");
$r = mysqli_fetch_row($q);
$aca = $r[0];
@ -44,6 +45,7 @@ function stats($c) {
?>
<h2>Statistics for <?=$_SESSION['callsign'];?></h2>
<!-- p>Note: The year for which the scores are calculated will remain 2020 until January 5th, 2021, to give you sufficient time to upload your remaining 2020 logs. After that, it will switch to 2021 and the 2020 score table will be archived.</p -->
<tr><td>ACA</td><td><?=$aca?></td><td><?=award_details('aca','y');?></td><td><ahref="/api.php?action=award_pdf&type=aca">Download PDF award</a></td></tr>