<?php
session_start();
/*
	removeUser.php
	TODO:here there is going to be "are you shore you want to remove this entery from tho database" thing.
*/
if(!$_SESSION[logedin]){
	
	sleep(.5);
	header('Location: ./BooKa.php');
	
}else {
	
	include "./inc/dbConnect.php";
	

	$db->queryexec("BEGIN;
	DELETE FROM users WHERE id = '{$_POST[id]}';
	COMMIT;") or die("could not remove {$_POST[id]} from table:");
	echo $db->error;
	
	sleep(.5);
	header('Location: ./BooKa.php?showadminpage=true&showrmuser=true');

}




?>
