<?php 
ob_start();
session_start();
if($_SESSION['name'] == '')
 {
     header("location:index.php");
 }
include('includes/config.php');


 $id=$_GET['ID'];
 $sql="delete from obtain WHERE id='$id'";
$query=mysqli_query($com,$sql);

echo "<script>
alert('Delete Sucessfully');
window.location.href='obtain.php';
</script>";

?>