Location: PHPKode > scripts > Open4Listing > cont/deletesubcategory.php
<?php
include("../setari.php");
$cxn = @ConnectToDb($dbServer, $dbUser9, $dbPass9, $dbName9);
if(isset($_COOKIE['vanzinch_email'])) 
{


$username = $_COOKIE['vanzinch_email']; 
$pass = $_COOKIE['vanzinch_pass'];
$check = mysql_query("SELECT * FROM clienti WHERE email = '$username'")or die(mysql_error()); 
while($myrow = mysql_fetch_array( $check )) 
{
if ($pass == $myrow['parola']) 
{
$category=$_GET[judet];
$subcategory=$_GET[localitate];
$judet=str_replace (" ", "+", $category);
mysql_query("delete from localitati where localitate='$subcategory' and judet='$category'")or die("Query failed 0");
header("Location: adauga_anunt1.php?judet=$judet");
}
}}
?>
Return current item: Open4Listing