{
$_SESSION['qty'][$_POST['prodId'][$key22]]=$value22;
}
}
if($_GET['deleteid'])
{
unset($_SESSION['cart'][$_GET['deleteid']]);
unset($_SESSION['qty'][$_GET['deleteid']]);
}
else
{
$getProductDtl="select * from product where id=".$_GET['productid'];
$getProductDtlRes=mysql_fetch_array(mysql_query($getProductDtl));
$_SESSION['cart'][$_GET['productid']]=$getProductDtlRes;
//$_SESSION['total']+=$getProductDtlRes['productPrice'];
}
?>
-------------------------------------------------------------------------------------------
0)
{
$getCategoryRes=mysql_query($getCategory);
while($row=mysql_fetch_array($getCategoryRes))
{
$countProduct="select count(*) as total from product where categoryId=".$row['id'];
$countProductRes=mysql_fetch_array(mysql_query($countProduct));
?>
( )
NO CATEGORIES
-----------------------------------------------------------------------------------------------
0)
{
$k=0;
foreach($_SESSION['cart'] as $key=>$value)
{
?>
$
$0 )
{
if($_SESSION['qty'][$key]!='')
{
echo $value['productPrice'] * $_SESSION['qty'][$key];
$_SESSION['total']+=$value['productPrice'] * $_SESSION['qty'][$key];
}
else
{
echo $value['productPrice'] * 1;
$_SESSION['total']+=$value['productPrice'] * 1;
}
}
else
{
echo $value['productPrice'] * 1;
$_SESSION['total']+=$value['productPrice'] * 1;
}
?>
----------------------------------------------------------------------------------------
$



