affichage script qui ne devrait pas
Posté : 27 mai 2021, 10:29
Bonjour,
Ce script PHP fonctionne mais s'affiche ensuite sur la page HTML de redirection. Comment virer cet affichage
Ce script PHP fonctionne mais s'affiche ensuite sur la page HTML de redirection. Comment virer cet affichage
<?php
session_start();
require_once 'config.php';
$id = !empty($_SESSION['id']) ? $_SESSION['id'] : NULL;
$pdostat = $bdd->prepare("UPDATE map INNER JOIN membres ON membres.pos_x = map.pos_x AND membres.pos_y = map.pos_y
SET map.def_animal = map.def_animal-1 WHERE membres.id= $id");
$pdostat->execute();
header('Location:erreur_animal_blesse.html');
?>