Hi I need some advice. I am creating a script that displays all the items in a cart based on a the session id, the steps are explained below.
The user adds to cart and then a new row is created in mysql with a unique orderid.
The orderid is then stored in the session id.
What i am looking to do is create a search function that displays the cart items based in the orderid. I have created the code below but appaears with diiferent errors when i try run it.
Mentioning something about T-Variables.
Can Anyone help
small code snippet it explains error appears on this line
$result = mysql_query ("Select product, price from productsordered where orderid = $HTTP_SESSION_VARS['orderid']",$db);