Location: PHPKode > scripts > PHP Classified script made easy > php-classified-script-made-easy/Files/manager/delete.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 classifieds WHERE adid = '".$id."'";
$result = mysql_query($query);
echo "<script type='text/javascript'>alert('Ad Deleted Successfully! Redirecting...');</script>";
echo "<meta http-equiv='refresh' content='0;url=admin.php'>";
}
?>
Return current item: PHP Classified script made easy