ob_start();
session_start();
$uIp = $HTTP_SERVER_VARS["REMOTE_ADDR"];
$uBsr = $HTTP_SERVER_VARS["HTTP_USER_AGENT"];
$crntPage = $HTTP_SERVER_VARS["SCRIPT_NAME"];
if(isset($HTTP_SERVER_VARS['HTTP_REFERRER'])){
$Referrer = $HTTP_SERVER_VARS['HTTP_REFERRER'];
}else{
$Referrer = "www.xyz.com";
}
$sId = session_id();
///////////////////////////////////////////////////
$host="localhost";
$user="pierllxy_siti";
$password="p@kistan$321";
$db="pierllxy_siti";
////////////////////////////////////////////////////////
$connect = @mysql_connect($host, $user, $password);
mysql_select_db($db);
///////////////////////////////////////////////////////////////////////
$sad=mysql_query("select * from tbl_admin where RecID='1'") or die("Invalid SQL ".mysql_error());
$adrow=mysql_fetch_array($sad);
////////////////////////////////////////////////////////////////////////
$Company=$adrow['fname'];
$CpTitle="Control Panel ( $Company )";
$FSTitle=$adrow['title'];
$EmlTo=$adrow['email'];
$fkeywords=$adrow['keywords'];
$fdescription=$adrow['description'];
$img1="img/ms2.jpg";
$img2="img/mmid.jpg";
$myURL="http://xyz.com/xyz/";
$simgs="sdata/";
$defimg="admincp/";
$bimgs=$simgs."banner/";
$bimgs1=$defimg.$simgs."banner/";
$bsecimgs=$simgs."secbanner/";
$bsecimgs1=$defimg.$simgs."secbanner/";
$secimgs=$simgs."secimgs/";
$secimgs1=$defimg.$simgs."secimgs/";
$mainimgs=$simgs."mainimgs/";
$mainimgs1=$defimg.$simgs."mainimgs/";
$subimgs=$simgs."subimgs/";
$subimgs1=$defimg.$simgs."subimgs/";
$itmimgs=$simgs."itmimgs/";
$itmimgs1=$defimg.$simgs."itmimgs/";
?>
$MSecID='';
$SecID='';
$MainID='';
$SubID='';
$ItmID='';
$Head='';
if(isset($_REQUEST['IDZ'])){
$IDZ=$_REQUEST['IDZ'];
list($ItmID,$SubID,$MainID,$SecID,$MSecID)=split('[-]',$IDZ);
}
$cats="y";
$chat="n";
$radio="n";
$news="n";
$lexchange="n";
$banners="n";
$sqlp="select * from tbl_items where ";
if($MSecID<>''){
$qry=mysql_query("select MSecName from tbl_mainsection where MSecID='".$MSecID."'") or die("Invalid MSecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$Head .=$data[0];
$mn=$data[0];
}
}
mysql_free_result($qry);
}else{
$qry=mysql_query("select * from tbl_mainsection order by rank") or die("Invalid MSecID ".mysql_error());
If(mysql_num_Rows($qry)>0){
$rs=mysql_fetch_array($qry);
$MSecID=$rs["MSecID"];
$Head .="".$rs["MSecName"]." » ";
}
mysql_free_result($qry);
}
$sqlp.= "MSecID='".$MSecID."'";
if($SecID<>''){
$qry=mysql_query("select SecName,SecImg from tbl_section where MSecID='".$MSecID."' and SecID='".$SecID."' order by rank") or die("Invalid MSecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$sn=$data[0];
$Head ="".$mn." » ".$data[0];
}
}
mysql_free_result($qry);
}else{
$qry=mysql_query("select * from tbl_section where MSecID='".$MSecID."' order by rank") or die(mysql_error());
if(mysql_num_rows($qry)>0){
$rs=mysql_fetch_array($qry);
$SecID=$rs["SecID"];
$Head .=$rs["SecName"];
}
mysql_free_result($qry);
}
$sqlp.= " and SecID='".$SecID."'";
if($MainID<>'' && $MainID<>0){
$qry=mysql_query("select MainName,MainImg,PrdType from tbl_main where MSecID='".$MSecID."' and SecID='".$SecID."' and MainID='".$MainID."' order by rank") or die("Invalid MSecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
//$Head .=$data[0]."sssss";
$Head = $mn." » ".$sn." » ".$data[0];
}
}
mysql_free_result($qry);
}else{
$qrychk=mysql_query("select * from tbl_main where MSecID='".$MSecID."' and SecID='".$SecID."' order by rank") or die(mysql_error());
if(mysql_num_rows($qrychk)>0){
$rs=mysql_fetch_array($qrychk);
$MainID=$rs["MainID"];
$Head .= $rs["MainName"];
}
mysql_free_result($qrychk);
}
$sqlp.= " and MainID='".$MainID."'";
if($SubID<>'' && $SubID<>0){
$qry=mysql_query("select SubName,PrdType from tbl_sub where MSecID='".$MSecID."' and SecID='".$SecID."' and MainID='".$MainID."' and SubID='".$SubID."'") or die("Invalid MSecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$Head .=$data[0];
}
}
mysql_free_result($qry);
}else{
$qrychk=mysql_query("select * from tbl_sub where MSecID='".$MSecID."' and SecID='".$SecID."' and MainID='".$MainID."' order by rank") or die(mysql_error());
if(mysql_num_rows($qrychk)>0){
$rs=mysql_fetch_array($qrychk);
$SubID=$rs["SubID"];
$Head .=$rs["SubName"];
}
mysql_free_result($qrychk);
}
$sqlp.= " and SubID='".$SubID."' and sOption='y' order by rank";
//echo("".$sqlp."");
?>
$page_name="products.php";
if(!isset($start)){
$start = 0;
}
if(isset($_GET["start"])){
$start = $_GET["start"];
}
$eu = ($start - 0);
if($MSecID==4){
$limit=1;
}else{
$limit=1;
}
$thisp = $eu + $limit;
$back = $eu - $limit;
$next = $eu + $limit;
$query2=$sqlp;
$result2=mysql_query($query2);
echo mysql_error();
$nume=mysql_num_rows($result2);
?>
|
Follow us: info@inoxtools.biz | Call now: +92 - 321 -7115317 |
|
|
|
|
|
|
|
|
|
|
|