forked from rebillar/site-accueil-insa
test ville
This commit is contained in:
parent
7fa3605df0
commit
608709732d
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue