1
0
This commit is contained in:
Daniel Tartavel 2022-09-19 12:56:42 +02:00
parent 5c1836e5e6
commit eaf5330e23

View File

@ -24,22 +24,22 @@ if (array_key_exists("idVotation", $GLOBALS) and empty($idVotation))
if (empty($idVotation))
{
choixVotation($path, 1, false);
}
$method = getpost("method");
$libelle = getpost("libelle");
if (empty($method) or empty($libelle))
{
votesForm($path);
}else
{
$method = getpost("method");
$libelle = getpost("libelle");
if (empty($method) or empty($libelle))
{
votesForm($path);
}else
{
$db = new db();
$query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')";
print($query);
//$db->query($query);
$db->close();
}
}
print(' </div>
</div>
</div>