<?php
require('include/initalizedb.php');
session_start();
// echo "<pre>";
// print_r($_SESSION);
// echo "</pre>";
$user_id = $_SESSION['session_id'];
$table = "users";
$where = array(
'id' => $user_id
);
$res = $db->removeData($table, $where);
echo "<h3>Thank You. Your account has been deleted.</h3>";
session_unset();
session_destroy();
ob_start();
// header("location:index.php");
ob_end_flush();
exit();
?>