1
0
This commit is contained in:
Daniel Tartavel 2022-09-25 14:44:23 +02:00
parent 37b0c9b4aa
commit 2b583f606a

View File

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