lional Posted October 6, 2008 Share Posted October 6, 2008 I am trying to write a script that can pull all the items from a mysql table and add them to the cart. The reason is that I output the products ordered in a pdf for authorization. This might not happen the same day so I write all the products to the table, so that when the order is approved or changes need to be made we can import those records into the shopping cart and edit the order as need be or checkout The code for the initial cart is foreach($_POST['product'] as $key => $value) { $qty1 = $value; $pid = $key; // add to the cart session variable $_SESSION['cart'][$pid] = $qty1; } How do I enter this to pull the products from my mysql table. Link to comment https://forums.phpfreaks.com/topic/127206-pulling-cart-from-mysql-table/ Share on other sites More sharing options...
steveclondon Posted October 6, 2008 Share Posted October 6, 2008 arn't you pulling it out the database using the code above? You will need to display alot more information for any one to get what exactly you have done and what you want to do! Link to comment https://forums.phpfreaks.com/topic/127206-pulling-cart-from-mysql-table/#findComment-657996 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.