// SHOW SHOPPING CART LINK IF THERE ARE ITEMS IN THE CART
if ($_COOKIE["shopperid"] && !$cartNum) {
$cookieQuery = "SELECT * FROM shopping WHERE cookieid='".$_COOKIE["shopperid"]."'";
$cartResult = mysql_query($cookieQuery);
$cartNum = mysql_num_rows($cartResult);
}
if($cartNum > 0) {
if($cartNum != 1) $s = "s"; ?>
You currently have item in your cart.
} ?>
Comments