test
这个提交包含在:
父节点
59cb7c2bd9
当前提交
561460851d
共有 1 个文件被更改,包括 3 次插入 和 3 次删除
|
@ -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
|
||||
|
||||
));
|
||||
|
||||
|
|
正在加载…
在新工单中引用