i want to display the quantity of products user had selected to purchased but 
<p>i had a shopping cart in which there are many products. user can purchase any number of specific item or different items
e.g.
he buys 3 items of product number 1, and
he buys 2 items of product number 2.</p>

<p>This is stored in database as two different records for single user with his id. Now when i want to see totall number of items he has selected.</p>

<p>how can i do that ?</p>
