forked from rebillar/site-accueil-insa
test ville
This commit is contained in:
parent
608709732d
commit
b67709f916
1 changed files with 4 additions and 4 deletions
|
@ -121,12 +121,12 @@ if(isset($_POST['reset_ekip'])){
|
||||||
|
|
||||||
if(isset($_POST['copier_chemin'])){
|
if(isset($_POST['copier_chemin'])){
|
||||||
$sql = "INSERT INTO ville_epreuve (id_equipe, indice, reponse, photo, est_finale, ordre)
|
$sql = "INSERT INTO ville_epreuve (id_equipe, indice, reponse, photo, est_finale, ordre)
|
||||||
SELECT ".htmlspecialchars((int)$_POST["id_equipe_dst"]).", indice, reponse, photo, est_finale, ordre
|
SELECT ?, indice, reponse, photo, est_finale, ordre
|
||||||
FROM ville_epreuve
|
FROM ville_epreuve
|
||||||
WHERE id_equipe=".htmlspecialchars((int)$_POST["id_equipe_og"]);
|
WHERE id_equipe = ?";
|
||||||
|
|
||||||
$stmt = $pdo->prepare($sql);
|
$stmt = $db->prepare($sql);
|
||||||
$stmt->execute();
|
$stmt->execute([htmlspecialchars((int)$_POST["id_equipe_dst"]), htmlspecialchars((int)$_POST["id_equipe_og"])]);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue