forked from rebillar/site-accueil-insa
test
This commit is contained in:
parent
59cb7c2bd9
commit
561460851d
1 changed files with 3 additions and 3 deletions
|
@ -69,16 +69,16 @@ if(isset($_POST['add_epreuve'])){
|
|||
}
|
||||
|
||||
|
||||
$_POST['est_finale'] = $_POST['est_finale'] == 'on' ? true : false;
|
||||
$_POST['est_finale'] = $_POST['est_finale'] == 'on' ? 0 : 1;
|
||||
|
||||
$req = $db->prepare("INSERT INTO ville_epreuve(indice,reponse,photo,id_equipe,est_finale,ordre,est_trouvee) VALUES(?,?,?,?,?,?,?)");
|
||||
$req->execute(array(htmlspecialchars($_POST['indice']),
|
||||
htmlspecialchars($_POST['reponse']),
|
||||
$file_name,
|
||||
(int)htmlspecialchars($_POST['id_equipe']),
|
||||
(bool)htmlspecialchars($_POST['est_finale']),
|
||||
(int)htmlspecialchars($_POST['est_finale']),
|
||||
(int)htmlspecialchars($_POST['ordre']),
|
||||
false
|
||||
0
|
||||
|
||||
));
|
||||
|
||||
|
|
Loading…
Reference in a new issue