shoppingcart

if($_SESSION['count']<=0) {

 
 
Your Cart Is Empty
 

} else {

if($_GET['error']==”yes”) {echo “Item Exists in the list,Update Below” ; }

if(!isset($k))
$k=$_SESSION['count'];
if($k>=1)
{

for($i=1;$i<=$k;$i++)

$delete=$i;
$qur1=mysql_query("select pqty from products where pid=".$_SESSION['cart'][$i]["productId"]);
$q=mysql_fetch_array($qur1);

if($i!=$_SESSION['count']) {

}

$totqty=$totqty+$_SESSION['cart'][$i]["qty"];
$totres=$totres+$_SESSION['cart'][$i]["totprice"];
}
$_SESSION['totalquentity']=$totqty;
$_SESSION['totalamount']=$totres;

}

Product Details Quantity Price Shipping Price Total Delete
stripslashes($_SESSION['cart'][$i]["prodName"]);

echo stripslashes($_SESSION['cart'][$i]["weight"]);

echo stripslashes($_SESSION['cart'][$i]["weight"]);
 

$ echo $_SESSION['cart'][$i]["price"]; $ echo $_SESSION['cart'][$i]["shipprice"]; $ echo $_SESSION['cart'][$i]["totprice"];
Selected Size:   echo $_SESSION['cart'][$i]['size']“

Total echo $_SESSION['count']; Items Selected echo $totqty;     $ echo $totres;  
  

}