<?
require_once("../conn.php");
require_once("access.php");


if(!empty($_GET[SubCategoryID]))
{
	$qup = "update yellow_agents  set CategoryID = '' where CategoryID = '$_GET[SubCategoryID]' ";
		mysql_query($qup) or die(mysql_error());
		$q1 = "delete from yellow_subcat where subcatid = '$_GET[SubCategoryID]' ";
		mysql_query($q1) or die(mysql_error());

		header("location: Subcategories.php");
	}
	


?>