From 608709732d22f6eef83d8f27c975cfe4d4b67eb2 Mon Sep 17 00:00:00 2001 From: mougnibas Date: Mon, 4 Sep 2023 19:00:00 +0200 Subject: [PATCH] test ville --- admin/ville.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/ville.php b/admin/ville.php index d6e324a..f3876f7 100644 --- a/admin/ville.php +++ b/admin/ville.php @@ -121,12 +121,12 @@ if(isset($_POST['reset_ekip'])){ if(isset($_POST['copier_chemin'])){ $sql = "INSERT INTO ville_epreuve (id_equipe, indice, reponse, photo, est_finale, ordre) - SELECT ?, indice, reponse, photo, est_finale, ordre + SELECT ".htmlspecialchars((int)$_POST["id_equipe_dst"]).", indice, reponse, photo, est_finale, ordre FROM ville_epreuve - WHERE id_equipe = ?"; + WHERE id_equipe=".htmlspecialchars((int)$_POST["id_equipe_og"]); $stmt = $pdo->prepare($sql); - $stmt->execute([$_POST["id_equipe_dst"], $_POST["id_equipe_og"]]); + $stmt->execute(); }