From fb5e12cddd2f13c0d43e8e1784d1ae04d4a6f61f Mon Sep 17 00:00:00 2001 From: asdf1899 Date: Thu, 22 Nov 2018 19:29:09 +0100 Subject: [PATCH] Fix small thing --- core/getStats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/getStats.php b/core/getStats.php index f9c28f5..6f8dcf0 100644 --- a/core/getStats.php +++ b/core/getStats.php @@ -42,7 +42,7 @@ function getInterventiAnnuali($anno, $db_conn){ return $report; } function getReportYears($db_conn){ - $sql = "SELECT YEAR(Data) as anno FROM t_rapportiVVF GROUP BY anno"; + $sql = "SELECT YEAR(Data) as anno FROM t_rapportiVVF GROUP BY anno DESC"; $risultato = mysqli_query($db_conn, $sql); if ($risultato == false){ die("error");