require("config.inc");
include("chksession.php");
include("fclr.inc");
$MSecID=$_REQUEST['MSecID'];
$SecID=$_REQUEST['SecID'];
$MainID=$_REQUEST['MainID'];
$qry=mysql_query("select * from tbl_mainsection where MSecID='".$MSecID."' and lngid='".$LngID."'") or die("Invalid MSecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$MSecName=$data[2];
}
}
mysql_free_result($qry);
$qry=mysql_query("select * from tbl_section where SecID='".$SecID."' and MSecID='".$MSecID."' and lngid='".$LngID."'") or die("Invalid MSecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$SecName=$data[3];
}
}
mysql_free_result($qry);
$qry=mysql_query("select * from tbl_main where MainID='".$MainID."' and SecID='".$SecID."' and MSecID='".$MSecID."' and lngid='".$LngID."'") or die("Invalid MSecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$MainName=$data[4];
}
}
mysql_free_result($qry);
?>
require("scripts.php");?>
include("topbar-inc.php") ?>
Manage Sub Categories
This is the fourthlevel for your product catgegories. Enter name for the categories in the text box and press submit to add a category at fourth level for products. To add product after fourth level click on items button. To set ranking for the categories enter number in the text box and press enter it will rearrange the categories. In Action panel there are two icons the left one for edit and the right one for deletion.
$qry=mysql_query("select * from tbl_sub where MSecID='".$MSecID."' and SecID='".$SecID."' and MainID='".$MainID."' and lngid='".$LngID."' order by rank") or die("Invalid Query ".mysql_error());
if($qry){
$rows = mysql_num_rows($qry);
if($rows>0){
?>