Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to count the number of PRODUCTS bought in a cart.

Status
Not open for further replies.

mancroft

Programmer
Oct 26, 2002
267
GB
A shopping cart has a table called "cart" where the customer's selections are stored.

The customer buys 1 item of Product C, 2 items of Product H and 3 items of Product T.

I need to be able to count the number of PRODUCTS bought NOT the number of items. i.e. the answer here is 3.

What is the EASIEST way to do this?

Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top