VOTE
');
$query = 'SELECT * FROM liste_votes WHERE idVotation="' . $db->protect( $votation) .'"';
$result = $db->query($query);
$listeVotes = $db->result->fetch_all(MYSQLI_ASSOC);
voter($idVotant, $votation, $vote);
$query = "SELECT idprocurant FROM procurations WHERE idvotant='" . $db->protect(idVotant) . "' AND idvotation=" . $db->protect(idVotation);
$result = $db->query($query);
$listProcurants = $db->result->fetch_all(MYSQLI_ASSOC);
if (count($listProcurants) != 0)
{
foreach($listProcurants as $procurant)
{
voter($procurant, $votation, $vote);
}
}
$db->close();
print('