include("conn-web/cw.php");
ob_start();
session_start();
$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'];
$vijay=$_REQUEST['enq'];
if($vijay!=""){
foreach($vijay as $ram){
$sql_cpid="select * from 15cup_ar_indexpg_2013 where id ='$ram'";
$query_cpid=mysqli_query($connect,$sql_cpid) or die(mysql_error());
$Result=mysqli_fetch_array($query_cpid);
$_SESSION['ENQCPID'][$ram] =array (
"product_id" => $ram,
"quantity" => 1,
"title"=> $Result['title'],
"imgpath"=> $Result['imgpath'],
"price"=> $Result['price'],
"weight"=> $Result['weight'],
"cat_id"=> $Result['cat_id'],
"code"=> $Result['code']
);
}
}
?>
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
}?>
Product Enquiry
Product Name
Code
Product Image
Remove
if($_SESSION['ENQCPID']<>""){
foreach($_SESSION['ENQCPID'] as $product){
$getcate="select * from 15cup_ar_category_2013 where catid='" . $product['cat_id']."' or catid='" . $enq['cat_id']."'";
$gcatg=mysqli_query($connect,$getcate);
$catgrow=mysqli_fetch_array($gcatg);
?>
print $product['title'];?>
print $product['code'];?>
Remove
$_SESSION['title']=$product['title']; ?>
$_SESSION['code']=$product['code']; ?>
}} ?>
include("footer1.php");?>
include("footer.php");?>