You are on page 1of 1

<?

php

include_once 'conexion.php';
if(isset($_GET['ID'])){
$id=(int) $_GET['ID'];
$delete=$con->prepare('DELETE FROM Persona WHERE ID=:ID');
$delete->execute(array(
':ID'=>$id
));
header('Location: index.php');
}else{
header('Location: index.php');
}
?>

You might also like