diff --git a/application/remAnimal.php b/application/remAnimal.php new file mode 100644 index 0000000000000000000000000000000000000000..e19813739fdc63adb5b258edfc46834c4d8fbf95 --- /dev/null +++ b/application/remAnimal.php @@ -0,0 +1,46 @@ + + + Exercice + + + + 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/~bdd0p117/animal.php'); + }else + echo "Il manque une donnée"; + } catch(PDOException $e){ + echo "Erreur de suppresion '$e'"; + } + + + ?> + +