1
0
This commit is contained in:
Daniel Tartavel 2022-09-25 15:24:43 +02:00
parent e645b8121d
commit 3f0111dc5e

View File

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