'Adding all quantities of the same product and displaying it as one
I have 3 the same product name but different ID's. Their quantities are 12, 20 and 30. I want to add all of those quantities and display them as one. if I'm going to display it in the web it should look like this:
Potato chips = 62 pcs.
In short I want to display the overall quantity of the said product.
Im using php mysql btw.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
