erreur de syntaxe
This commit is contained in:
parent
31ede4dc57
commit
aea420efdc
@ -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);
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user