<?php
###############################
#userset.php version 1.1.#
###############################
$id = (int)$_GET['id'];
$ref = (int)$_GET['ref'];
include ('header.php');
?>
<div id="headermenu">Manage users</div>
<?php
if($ref == 1){
$arecordSet = $conn->Execute("DELETE FROM comment WHERE commid = '$id' ");
echo "<div id ='information'> Successfully. ";
}
if($ref == 2){
$brecordSet = $conn->Execute("DELETE FROM reviews WHERE revid = '$id' ");
echo "<div id ='information'> Successfully. ";
}
$conn->Close();
?>
<a href="index.php">Main Cofig</a></div>
</div></div></div>
<?php include ('footer.php'); ?>