1
0
This commit is contained in:
Daniel Tartavel 2022-09-25 15:16:08 +02:00
parent 2b583f606a
commit e645b8121d

View File

@ -19,7 +19,6 @@ function queryVotationName($db, $idVotation) :string
function queryVotes($db, $idVotation) 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 listes_votes.methods=methods.id WHERE idVotation='" . $idVotation . "'";
print $query;
$db->query($query); $db->query($query);
$votes = $db->result->fetch_all(); $votes = $db->result->fetch_all();
return $votes; return $votes;
@ -50,7 +49,7 @@ if (!empty($votes))
{ {
foreach ($votes as $value) foreach ($votes as $value)
{ {
print ($value[0] . " " . $value[1] . EOLH); print ($value[1] . " " . $value[5] . EOLH);
} }
echo EOLH . EOLH; echo EOLH . EOLH;
} }