include("conn-web/cw.php");
$sqlranking="select * from 15cup_ar_indexpg_2013 where id='".$_REQUEST['id']."' ";
$id=$_REQUEST['id'];
$qryranking=mysqli_query($connect,$sqlranking) or die(mysql_error());
$rno=mysqli_num_rows($qryranking);
$dispbestseller="";
$count=1;
$rsranking=mysqli_fetch_array($qryranking);
$sqlcat="select * from 15cup_ar_category_2013 where catid='".$_REQUEST['catid']."'";
$qrycat=mysqli_query($connect,$sqlcat) or die(mysql_error());
$rowcat=mysqli_fetch_array($qrycat);
$category=$rowcat['category'];
$sqlpcat="select * from 15cup_ar_category_2013 where catid='".$_REQUEST['subid']."'";
$qrypcat=mysqli_query($connect,$sqlpcat) or die(mysql_error());
$rowpcat=mysqli_fetch_array($qrypcat);
$pcategory=$rowpcat['category'];
$sqlpcat1="select * from 15cup_ar_category_2013 where catid='".$_REQUEST['spcatid']."'";
$qrypcat1=mysqli_query($connect,$sqlpcat1) or die(mysql_error());
$rowpcat1=mysqli_fetch_array($qrypcat1);
$spcategory=$rowpcat1['category'];
if($_REQUEST['catid']==1){ $cat_link="gemstone-wholesale-india.php";}
elseif($_REQUEST['catid']==2){ $cat_link="wholesale-silver-jewelry.php";}
elseif($_REQUEST['catid']==257){ $cat_link="latest-gemstone-silver-jewelry.php";}
else{$cat_link="";}
?>
if($_REQUEST['subid']!=0 && $_REQUEST['catid']!=0 && $_REQUEST['spcatid']!=0){?>
}
else if($_REQUEST['subid']!=0 && $_REQUEST['catid']!=0){?>
}
else if($_REQUEST['catid']!=0){?>
}
else{
?>
- Products
}?>
include("left.php");?>
$sqlrankingrr="select ip.*, rl.pid, rl.cid from 15cup_ar_indexpg_2013 as ip, 15cup_ar_related_2013 as rl where rl.pid='".$_REQUEST['id']."' and rl.cid=ip.id order by rand() limit 8";
$qryrankingrr=mysqli_query($connect,$sqlrankingrr) or die(mysql_error());
$rnorr=mysqli_num_rows($qryrankingrr);
if($rnorr>0){
$j=1;
?>
You May Like Also
while($rsrankingrr=mysqli_fetch_array($qryrankingrr)){
if($j<4){
$divclass="pdiv1 pdivmargin";
}else{
$divclass="pdiv1";
}
?>
Product Code:
$j++;
if($j==5){
$j=1;}
}?>
}?>
include("footer1.php");?>
include("footer.php");?>