From c55d51f100348a3d485abc4abbe3032febed8fa1 Mon Sep 17 00:00:00 2001 From: grouille Date: Tue, 14 Apr 2020 19:12:16 +0200 Subject: [PATCH] Ajout compte --- site/accesBase.php | 1 + site/header.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/site/accesBase.php b/site/accesBase.php index 91f9e4e..05c7668 100644 --- a/site/accesBase.php +++ b/site/accesBase.php @@ -63,6 +63,7 @@ function getGroupe($id) { $db = connexion(); + echo "doeoee"; $query = "SELECT groupe FROM membres where identifiant = '$id'"; $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); $tab = pg_fetch_assoc($result); diff --git a/site/header.php b/site/header.php index 1c75db6..edbca9f 100644 --- a/site/header.php +++ b/site/header.php @@ -17,10 +17,10 @@ Graphiques Valeurs Compte'; - //} + if(getGroupe($_SESSION['Login'])==0) + { + echo ' Compte'; + } ?> Deconnexion