debug
This commit is contained in:
parent
37b0c9b4aa
commit
2b583f606a
@ -18,9 +18,10 @@ function queryVotationName($db, $idVotation) :string
|
|||||||
|
|
||||||
function queryVotes($db, $idVotation)
|
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);
|
$db->query($query);
|
||||||
$votes = $db->result->fetch_assoc();
|
$votes = $db->result->fetch_all();
|
||||||
return $votes;
|
return $votes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user