Professional Documents
Culture Documents
Eliminar Registros
Eliminar Registros
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');
}
?>