I have the following database:
Drager || Price
----------------
LP || €16
CD || €9
LP || €21
S || €12
I want to count the "Drager" and make a table that looks like this:
Drager || Number || Price
LP || 2 || €37
CD || 1 || €9
S || 1 || €12
My question now is: how can I count all the "dragers"?
I got this query but how can I count them separetaly?:
$query = "SELECT COUNT(Medium) FROM platen";
And how can I get the total price?
I appreciate your help!