require("config.inc");
include("chksession.php");
include("fclr.inc");
$MSecID=$_REQUEST['MSecID'];
$SecID=$_REQUEST['SecID'];
$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);
?>
require("scripts.php");?>
include("topbar-inc.php") ?>
Manage Categories
This is the third level for your product catgegories. Enter name for the categories in the text box and press submit to add a category at third level for products. To add further fourth level click on the sub categories button ( button will be hide if the product exist after third level ) and in order to add product after three level click on items button ( button will be hide if the fourth level exist after third level ). 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_main where MSecID='".$MSecID."' and SecID='".$SecID."' and lngid='".$LngID."' order by rank") or die("Invalid Query ".mysql_error());
if($qry){
$rows = mysql_num_rows($qry);
if($rows>0){
?>
$qrypChk=mysql_query("select * from tbl_items where MSecID='".$MSecID."' and SecID='".$SecID."' and MainID='".$data[3]."' and SubID=0") or die("Invalid Query ".mysql_error());
if(mysql_num_rows($qrypChk)>0){
?>
}else{
?>
Sub
Categories
}
?>
$cRow=0;
$qryChk=mysql_query("select * from tbl_sub where MSecID='".$MSecID."' and SecID='".$SecID."' and MainID='".$data[3]."'") or die("Invalid Query ".mysql_error());
if($qryChk){
$cRow=mysql_num_rows($qryChk);
if($cRow>0){
?>
}else{
?>
Items
}
}
?>