connect_errno) { printf("Connect failed: %s\n", $mysqli->connect_error); exit(); }*/ $cart = $_COOKIE['cart']; ?> View Cart query($query); $row = $result->fetch_array(MYSQLI_ASSOC); $ldata = explode('||',$row['long_data']); $result->free(); $i = 0; $q = 0; foreach ($ldata as $l) { if ($l != "" && !is_numeric($l)) { $q += $ldata[$i+1]; } $i++; } if ($q > 0) { ?>
  View Cart: item 1) echo "s"; ?>|Checkout