From 3f0111dc5ecc3059ca5f0f4a81e84f272ea5987c Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 25 Sep 2022 15:24:43 +0200 Subject: [PATCH] debug --- gestion/saisieVotes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/saisieVotes.php b/gestion/saisieVotes.php index d13abcd..5d46594 100644 --- a/gestion/saisieVotes.php +++ b/gestion/saisieVotes.php @@ -18,7 +18,7 @@ function queryVotationName($db, $idVotation) :string function queryVotes($db, $idVotation) { - $query = "SELECT * FROM liste_votes LEFT JOIN methods ON listes_votes.methods=methods.id WHERE idVotation='" . $idVotation . "'"; + $query = "SELECT * FROM liste_votes LEFT JOIN methods ON liste_votes.methode=methods.id WHERE idVotation='" . $idVotation . "'"; $db->query($query); $votes = $db->result->fetch_all(); return $votes;