diff --git a/site/accesBase.php b/site/accesBase.php index 7dce86d..4bed644 100644 --- a/site/accesBase.php +++ b/site/accesBase.php @@ -44,6 +44,15 @@ $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); return pg_affected_rows($result); } + + function members() + { + $db = connexion(); + $query = "SELECT * FROM membres"; + $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); + $tab = pg_fetch_all($result); + return $tab; + } function inscription($id, $pwd, $nom, $prenom, $groupe) { @@ -83,6 +92,16 @@ return $tab['groupe']; } + function groupeId($id) + { + $db = connexion(); + $query = "SELECT groupe FROM groupes where id = '$id'"; + $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); + $tab = pg_fetch_assoc($result); + deconnexion($db); + return $tab['groupe']; + } + function getGroupes() { $db = connexion(); diff --git a/site/formSuppression.php b/site/formSuppression.php index e81f4f0..5cab4a2 100644 --- a/site/formSuppression.php +++ b/site/formSuppression.php @@ -1,7 +1,6 @@
Nom | +Prénom | +Identifiant | +Groupe | +Action | +
+ | + | + | + | + + | +