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; }