Ok...here's the deal....I have a shopping cart script which works fine up to a point.
When I add to cart...it adds the item fine...However, with another computer/browser, the items in the cart remains there....For example...if I add a $5 item to the cart.....when someone else visits the page they will see $5 in their cart. What could be causing this?
My add.php page is:
<?
require_once("conn.php");
if(isset($_POST[s1]))
{
$MyTotal = $_POST[ItemPrice] + $_POST[ItemShipping];
$q1 = "insert into devbg_orders_content set
OrderID = '$PHPSESSID',
ItemID = '$_POST[ItemID]',
ItemName = '$_POST[ItemName]',
ItemPrice = '$_POST[ItemPrice]',
ItemQty = '1',
ItemShipping = '$_POST[ItemShipping]',
ItemTotal = '$MyTotal' ";
mysql_query($q1) or die(mysql_error());
}
header("location:cart.php");
?>