ob_start();
session_start();
require 'connect.php';
?>
$sessid = session_id();
$removeid = $_GET['remove'];
if ($removeid)
{
mysql_query("delete from cartitems where id = '$removeid'");
header ("location: ".$root."index.php");
}
$qtytoupdate = $_POST['qty'];
if (isset($qtytoupdate))
{
$prodid = $_POST['prodid'];
mysql_query("update cartitems set qty = '$qtytoupdate' where cartitems = '$prodid' and sessid = '$sessid'");
}
$sql = mysql_query("select cartitems.id,cartitems.cartitems,products.name,products.price ,cartitems.qty,products.id,cartitems.attribute from cartitems,products where cartitems.sessid = '$sessid' and cartitems.cartitems = products.id");
while($showrow = mysql_fetch_array($sql))
{
$cartitemnum= $showrow[0];
$name = $showrow[2];
$price = $showrow[3];
$qty = $showrow[4];
$prodid = $showrow[5];
$attribute = $showrow[6];
?>

echo $name.', '.$attribute;?> Remove
//https://www.sandbox.paypal.com/us/cgi-bin/webscr
}
?>