debug
This commit is contained in:
parent
5c1836e5e6
commit
eaf5330e23
@ -24,22 +24,22 @@ if (array_key_exists("idVotation", $GLOBALS) and empty($idVotation))
|
||||
if (empty($idVotation))
|
||||
{
|
||||
choixVotation($path, 1, false);
|
||||
}
|
||||
|
||||
$method = getpost("method");
|
||||
$libelle = getpost("libelle");
|
||||
if (empty($method) or empty($libelle))
|
||||
{
|
||||
votesForm($path);
|
||||
}else
|
||||
{
|
||||
$db = new db();
|
||||
$query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')";
|
||||
print($query);
|
||||
//$db->query($query);
|
||||
$db->close();
|
||||
$method = getpost("method");
|
||||
$libelle = getpost("libelle");
|
||||
if (empty($method) or empty($libelle))
|
||||
{
|
||||
votesForm($path);
|
||||
}else
|
||||
{
|
||||
$db = new db();
|
||||
$query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')";
|
||||
print($query);
|
||||
//$db->query($query);
|
||||
$db->close();
|
||||
}
|
||||
}
|
||||
|
||||
print(' </div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user