View Single Post
Old 03-04-2008, 01:38 PM   #9 (permalink)
StevenF
The Contributor
 
Join Date: Jan 2008
Posts: 87
Thanks: 49
StevenF is on a distinguished road
Default

No matter, I thought of a better solution:

When a user logs in, their username is stored in a cookie. I then store that cookie in a $username variable on the products page. This allows me to $_GET the username from the url and insert it into the cart table when they select an item. In turn allowing me to display all the items added by that user.

Took a bit of thinking, but I got it in the end! Now I need to check if a row already exists, and if it doesn't, run the query.
__________________
My Personal and Photo Blog
StevenF is offline  
Reply With Quote