require_once("../conn.php");
require_once("access.php");
if(isset($_POST[s1]) && !empty($_POST[NewCategory]))
{
$q1 = "update yellow_subcat set subcatname = '$_POST[NewCategory]' where subcatid = '$_POST[subcatid]' ";
mysql_query($q1) or die("
Dublicate Category name!
go back
");
header("location:Subcategories.php");
exit();
}
include_once("LeftStyles.php");
//get the category info
$q1 = "select * from yellow_categories,yellow_subcat where subcatid = '$_GET[CategoryID]' and CategoryID=rootcatid ";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);
?>