PDA

View Full Version : Calling PHP session data


daBones
07-12-2005, 05:29 PM
Hey guys, I have a huge problem I need help with. I'm building a simple shopping cart interface for a client, but I'm not an expert in PHP or MySQL, so it's difficult. Here's what I'm trying to do.

I have a database table which lists a catalog of products, each with it's own ID number, product title, product number, etc. Right now, if a user views a product detail page, and clicks "Add to Shopping Bag," the product ID number is then set in a session array.

My problem is that, when a user views their shopping bag, I dont know how to take those product numbers sitting in the session array, associate them with their respective product titles, product number, and price, and display them in a list.

Anybody know how to accomplish what I'm trying to do? Any help would be appreciated!