Location: PHPKode > scripts > PHP Classified script made easy > php-classified-script-made-easy/Files/manager/delcat.php
<?php
	require_once('auth.php');
?>
<?PHP
$id = $_GET['id'];
if(!isset($id)){
echo "<meta http-equiv='refresh' content='0;url=admin.php'>";
} else {

include("../inc/header.php");
$query  = "DELETE FROM categories WHERE id = '".$id."'";
$result = mysql_query($query);
echo "<script type='text/javascript'>alert('Category Deleted Successfully! Redirecting...');</script>";
echo "<meta http-equiv='refresh' content='0;url=categories.php'>";
}
?>
Return current item: PHP Classified script made easy