debug
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user