I've read a couple of tutorials and I couldn't find one that seemed to work with an undefined number of variables.
I'm coding a shopping cart, so there can be 1, 2, 20 items in the shopping cart. I currently add a line in a separate table (containing the session id, the item id, and the quantity) so I can look up in my table with MySQL for all the lines from the session id. However with sessions, I didn't find anything that would let me search for all the entries in the cookie.
Question
kag
I've read a couple of tutorials and I couldn't find one that seemed to work with an undefined number of variables.
I'm coding a shopping cart, so there can be 1, 2, 20 items in the shopping cart. I currently add a line in a separate table (containing the session id, the item id, and the quantity) so I can look up in my table with MySQL for all the lines from the session id. However with sessions, I didn't find anything that would let me search for all the entries in the cookie.
Thanks in advance
kag
Link to comment
Share on other sites
7 answers to this question
Recommended Posts