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

include("inc/header.php");
$query  = "UPDATE classifieds SET authorized = '1' WHERE adid = '".$id."'";
$result = mysql_query($query);
echo "<script type='text/javascript'>alert('Ad Approved Successfully! Redirecting...');</script>";
echo "<meta http-equiv='refresh' content='0;url=index.php'>";
}
?>
Return current item: PHP Classified script made easy