$qryMSec=mysql_query("select * from tbl_mainsection where sshow ='y' and lngid='".$LngID."' order by rank") or die(mysql_error());
if(mysql_num_rows($qryMSec)>0){
$i=1;
while($rs=mysql_fetch_array($qryMSec)){
$qrySec=mysql_query("select * from tbl_section where MSecID='".$rs["MSecID"]."' and lngid='".$LngID."' order by rank") or die(mysql_error());
//if(mysql_num_rows($qrySec)>0){
// $txtLnk1="scategories.php?IDZ=0-0-0-0-".$rs["MSecID"]."&lng=".$LngID;
//}else{
$txtLnk1="products.php?IDZ=0-0-0-0-".$rs["MSecID"]."&lng=".$LngID;
//}
?>
if(isset($MSecID) && $MSecID==$rs["MSecID"]){
$disp="block";
}else{
$disp="none";
}
?>
$i=$i+1;
}
}
mysql_free_result($qryMSec);
?>