1
0
This commit is contained in:
2022-09-19 12:43:01 +02:00
parent ade2a8e0c8
commit 63310ff6e1
2 changed files with 3 additions and 2 deletions

View File

@ -25,9 +25,10 @@ $dateFin = getpost("dateFin");
if ($titre !== null and $libelle!== null and $dateDebut!== null and $dateFin !== null)
{
$db = new db();
$query = "INSERT INTO liste_votations ('titre', 'libelle', 'status', 'dateDebut', 'dateFin') VALUES('" . $titre . "', '" . $libelle . "', '0', '" . $dateDebut . "', '" . $dateFin . "')"; // clotûre
$query = "INSERT INTO liste_votations VALUES(0, '" . $titre . "', '" . $libelle . "', '0', '" . $dateDebut . "', '" . $dateFin . "')"; // clotûre
$db->query($query);
$db->close();
// TODO retour à l'index
}else
{
votationForm($path, $titre, $libelle, $dateDebut, $dateFin);