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))
|
if (empty($idVotation))
|
||||||
{
|
{
|
||||||
choixVotation($path, 1, false);
|
choixVotation($path, 1, false);
|
||||||
}
|
|
||||||
|
|
||||||
$method = getpost("method");
|
|
||||||
$libelle = getpost("libelle");
|
|
||||||
if (empty($method) or empty($libelle))
|
|
||||||
{
|
|
||||||
votesForm($path);
|
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
$db = new db();
|
$method = getpost("method");
|
||||||
$query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')";
|
$libelle = getpost("libelle");
|
||||||
print($query);
|
if (empty($method) or empty($libelle))
|
||||||
//$db->query($query);
|
{
|
||||||
$db->close();
|
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>
|
print(' </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user