require("config.inc");
include("chksession.php");
include("fclr.inc");
$MSecID=$_REQUEST['MSecID'];
$SecID=$_REQUEST['SecID'];
$MainID=$_REQUEST['MainID'];
$SubID=$_REQUEST['SubID'];
if($MSecID<>''){
$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];
}
}else{
$MSecID=0;
}
mysql_free_result($qry);
}
if($SecID<>''){
$qry=mysql_query("select * from tbl_section where SecID='".$SecID."' and SecID='".$SecID."' and lngid='".$LngID."'") or die("Invalid SecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$SecName=$data[3];
}
}else{
$SecID=0;
}
mysql_free_result($qry);
}
if($MainID<>''){
$qry=mysql_query("select * from tbl_main where MainID='".$MainID."' and SecID='".$SecID."' and MSecID='".$MSecID."' and lngid='".$LngID."'") or die("Invalid MainID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$MainName=$data[4];
}
}else{
$MainID=0;
}
mysql_free_result($qry);
}
if($SubID<>'' || $SubID>0){
$qry=mysql_query("select * from tbl_sub where SubID='".$SubID."' and 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);
$SubName=$data[5];
}
}else{
$SubID=0;
$SubName="";
}
mysql_free_result($qry);
}else{
$SubName="";
}
?>
require("scripts.php");?>
|
|
|
include("topbar-inc.php") ?> |
|
Manage Products
To Add the products add the text in the fields given and press submit. It will add the product. |
|
|
Back to main page |
|
|
|
|
|
|
|
|
include ("bottombar-inc.php")?> |
|
|
|
|