From 6f8089a907ea3f5930a3f7c8962f141f98e3c108 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Mon, 28 Nov 2016 10:07:54 +0100 Subject: [PATCH] NbConnexions() et PremiereConnexions() comptent sur total_connexions --- admin/connexions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/connexions.php b/admin/connexions.php index 7071c84..dc0469e 100644 --- a/admin/connexions.php +++ b/admin/connexions.php @@ -206,7 +206,7 @@ function Salles() { // Renvoie le total des connexions dans la table function NbConnexions() { $db = db_connect(); - $req = 'SELECT COUNT(*) FROM connexions'; + $req = 'SELECT COUNT(*) FROM total_connexions'; $res = db_query($db, $req); $count = db_fetch_row($res); return $count[0]; @@ -216,7 +216,7 @@ function NbConnexions() { // renvoie la date de la toute première connexion function PremiereConnexion() { $db = db_connect(); - $req = 'SELECT debut_con FROM connexions ORDER BY con_id LIMIT 1'; + $req = 'SELECT debut_con FROM total_connexions ORDER BY con_id LIMIT 1'; $res = db_query($db, $req); $prem = db_fetch_row($res); return $prem[0];