<?php session_start();
include_once ('conn/session.php');
require_once ('conn/dbconnect.php');
 


$con = mysqli_connect("$host","$username","$password","$database");
// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }
  
 $db_select = mysqli_select_db($con, $database);
 
$id=$_REQUEST['id'];


$query = "DELETE FROM `next_of_kin` WHERE `next_of_kin`.`id` = '$id'";

$result = mysqli_query($con,$query) or die ( mysqli_error());

header("Location: manage_account.php?action=3"); 

        $msg = "
		      <div class='alert alert-danger'>
				<button class='close' data-dismiss='alert'>&times;</button>
					<strong>Sorry!</strong> Next of Deleted Successfully
			  </div> 
			  ";
?>