I have a table with some products. Each of them have a price. When a user sees his basket, I want to display the total amount of all the products he selected.
My question is : is it possible to do it via SQL or have I to do it after the request in PHP ?
Actually my request is :
SELECT SUM(PRICE) FROM products WHERE ID IN(65,68,68);
And I would the two 68 to be taken in consideration.
Thank you, Florian