debug
This commit is contained in:
parent
86b0ef046f
commit
bfc6594c2c
@ -5,8 +5,6 @@ require_once 'db.class.php';
|
|||||||
require_once 'entete.php';
|
require_once 'entete.php';
|
||||||
require_once 'fonctions.inc.php';
|
require_once 'fonctions.inc.php';
|
||||||
|
|
||||||
echo "session ID " . SID;
|
|
||||||
|
|
||||||
$path = $_SERVER["PHP_SELF"];
|
$path = $_SERVER["PHP_SELF"];
|
||||||
$db = new db();
|
$db = new db();
|
||||||
|
|
||||||
@ -71,7 +69,7 @@ if (empty($idVotation))
|
|||||||
votesForm($path);
|
votesForm($path);
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
$query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')";
|
$query = "INSERT INTO liste_votes ('id', 'libelle', 'method', 'id_votation') VALUES ('0', " . $libelle . "', '" . $method . "', '" . $idVotation . "')";
|
||||||
print($query);
|
print($query);
|
||||||
$db->query($query);
|
$db->query($query);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user