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)) if (empty($idVotation))
{ {
choixVotation($path, 1, false); choixVotation($path, 1, false);
}
$method = getpost("method");
$libelle = getpost("libelle");
if (empty($method) or empty($libelle))
{
votesForm($path);
}else }else
{ {
$method = getpost("method");
$libelle = getpost("libelle");
if (empty($method) or empty($libelle))
{
votesForm($path);
}else
{
$db = new db(); $db = new db();
$query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')"; $query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')";
print($query); print($query);
//$db->query($query); //$db->query($query);
$db->close(); $db->close();
}
} }
print(' </div> print(' </div>
</div> </div>
</div> </div>