Lee Stevens
11-30-2006, 02:02 AM
I'm not sure if you can do this.
I'm making a shoping cart, which uses Session, but for every quantity it takes the id number and adds it by one, so if i had product ID 1, but i wanted 10 quanty, it would show when i print it "1,1,1,1,1,1,1,1,1,1", is there anyway, when i use count($_SESSION['name']); it only counts one of the 1's? Same as if i had 10 2's or 10 3's?
Let me no if you get what i mean hehe, thanks for the help.
I'm making a shoping cart, which uses Session, but for every quantity it takes the id number and adds it by one, so if i had product ID 1, but i wanted 10 quanty, it would show when i print it "1,1,1,1,1,1,1,1,1,1", is there anyway, when i use count($_SESSION['name']); it only counts one of the 1's? Same as if i had 10 2's or 10 3's?
Let me no if you get what i mean hehe, thanks for the help.