1
0

erreur de syntaxe

This commit is contained in:
Daniel Tartavel 2022-09-19 11:11:15 +02:00
parent 31ede4dc57
commit aea420efdc
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ if ($titre !== null and $libelle!== null and $dateDebut!== null and $dateFin !==
$db = new db(); $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 ('titre', 'libelle', 'status', 'dateDebut', 'dateFin') VALUES('" . $titre . "', '" . $libelle . "', '0', '" . $dateDebut . "', '" . $dateFin . "')"; // clotûre
$db->query($query); $db->query($query);
$db->close; $db->close();
}else }else
{ {
votationForm($path, $titre, $libelle, $dateDebut, $dateFin); votationForm($path, $titre, $libelle, $dateDebut, $dateFin);

View File

@ -38,7 +38,7 @@ if (empty($method) or empty($libelle))
$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>