nope, I still get the exact same results. It isn't pulling the product name or price and the update section doesn't work either. I am using a php and mySQL web development book shopping cart example and trying to make it my own. There are functions in it that i have left out because it uses categories. Depending on the category selected, it then does a query on books by $isbn to display the results. Which I don't have categories of products.
I have the query on the products working fine. It is basically just not posting the product name and price using the key and value of $prodID and $prodQty.
It also shows in the book to append the $prodID to the end of the url when calling the view_shopping_cart.php page. I tried doing it like the book shows by doing this: /view_shopping_cart.php?new=$prodID and getting rid of the hidden fields, but when I do that, it never adds anything to the cart, just keeps displaying that the cart is empty.
So the only way I have found to pass it is by using a hidden field like this: <input type='hidden' name='prodID' value=".$prodID.">
Only thing is that then I have to change @ $new= $GET['prodID']; to @ $prodID = $GET['prodID']; It also won't display anything if I use $POST instead of $GET.
I am totally lost.
Thanks for your help.