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;