From d156b2c49a3574f0c475e84d68769d78fc84fafe Mon Sep 17 00:00:00 2001 From: asdf1899 Date: Tue, 13 Nov 2018 19:23:57 +0100 Subject: [PATCH] Add select report year in stats --- core/getStats.php | 7 +++++++ stats.php | 36 +++++++++++++++++++++++++++++++++--- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/core/getStats.php b/core/getStats.php index bb56828..2f581d1 100644 --- a/core/getStats.php +++ b/core/getStats.php @@ -47,6 +47,13 @@ function getReportYears($db_conn){ if ($risultato == false){ die("error"); } + $years = array(); + $i=0; + while($ris = mysqli_fetch_array ($risultato, MYSQLI_ASSOC)){ + $years[$i] = $ris["anno"]; + $i++; + } + return $years; } //$report['Intervento'] = getCallType($ris['Intervento'], $db_conn); //$report['N_intervento'] = $ris['n_inter']; diff --git a/stats.php b/stats.php index aa975d2..e145c77 100644 --- a/stats.php +++ b/stats.php @@ -64,8 +64,38 @@

Statistiche


+
- +