Location: PHPKode > projects > php Blogger > admin/delete.php
<?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'>&nbsp;Successfully. ";
}
if($ref == 2){	
	$brecordSet = $conn->Execute("DELETE FROM reviews WHERE revid = '$id' ");
	echo "<div id ='information'>&nbsp;Successfully. ";
}
$conn->Close();
?>
<a href="index.php">Main Cofig</a></div>
</div></div></div>
<?php include ('footer.php'); ?>
Return current item: php Blogger