Commit 6bfaf251a0f90140b421225a52757e061907c093
1 parent
013b87b3
Ajout compte
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
site/accesBase.php
@@ -60,10 +60,9 @@ | @@ -60,10 +60,9 @@ | ||
60 | } | 60 | } |
61 | } | 61 | } |
62 | 62 | ||
63 | - /*function getGroupe($id) | 63 | + function getGroupe($id) |
64 | { | 64 | { |
65 | $db = connexion(); | 65 | $db = connexion(); |
66 | - echo "doeoee"; | ||
67 | $query = "SELECT groupe FROM membres where identifiant = '$id'"; | 66 | $query = "SELECT groupe FROM membres where identifiant = '$id'"; |
68 | $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); | 67 | $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); |
69 | $tab = pg_fetch_assoc($result); | 68 | $tab = pg_fetch_assoc($result); |
@@ -71,7 +70,7 @@ | @@ -71,7 +70,7 @@ | ||
71 | return $tab['groupe']; | 70 | return $tab['groupe']; |
72 | } | 71 | } |
73 | 72 | ||
74 | - functin getGroupes() | 73 | + /*functin getGroupes() |
75 | { | 74 | { |
76 | $db = connexion(); | 75 | $db = connexion(); |
77 | $query = "SELECT * FROM groupes"; | 76 | $query = "SELECT * FROM groupes"; |