thanks for the explanation
Okay, I created the foreach listed below
foreach($products AS $name => $info)
{
echo "<tr>";
echo "<td>{$info['name']}</td>";
echo "<td>\${$info['price']}</td>";
Then I added this line to pass the about of items that have been added to $_SESSION['cart']
echo "<td><a
href=$_SERVER[PHP_SELF]?buy=$products>BUY</a></td>";
am I passing the right array to the $_SESSSION['cart']
I need the display the items(dell laptop, etc) and the quantity (1,2, etc)of them in the cart