prepare($vSql); $vSt->execute(); $vSql ="DELETE FROM traitement WHERE idAnimal='$idAnimal';"; $vSt = $vConn->prepare($vSql); $vSt->execute(); $vSql ="DELETE FROM animal WHERE idAnimal='$idAnimal';"; $vSt = $vConn->prepare($vSql); $vSt->execute(); header('Location: http://tuxa.sme.utc/~bdd0p042/application/animal.php'); }else echo "Il manque une donnée"; } catch(PDOException $e){ echo "Erreur de suppresion '$e'"; } ?>