From 2b583f606a8bcca226f2f9dacd1ec50a53fa92ca Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 25 Sep 2022 14:44:23 +0200 Subject: [PATCH] debug --- gestion/saisieVotes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gestion/saisieVotes.php b/gestion/saisieVotes.php index a9d5511..d5912e6 100644 --- a/gestion/saisieVotes.php +++ b/gestion/saisieVotes.php @@ -18,9 +18,10 @@ function queryVotationName($db, $idVotation) :string function queryVotes($db, $idVotation) { - $query = "SELECT * FROM liste_votes WHERE id='" . $idVotation . "'"; + $query = "SELECT * FROM liste_votes LEFT JOIN methods ON listes_votes.methods=methods.id WHERE idVotation='" . $idVotation . "'"; + print $query; $db->query($query); - $votes = $db->result->fetch_assoc(); + $votes = $db->result->fetch_all(); return $votes; }