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
|
||||||
{
|
{
|
||||||
|
$method = getpost("method");
|
||||||
|
$libelle = getpost("libelle");
|
||||||
|
if (empty($method) or empty($libelle))
|
||||||
|
{
|
||||||
|
votesForm($path);
|
||||||
|
}else
|
||||||
|
{
|
||||||
$db = new db();
|
$db = new db();
|
||||||
$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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user