I'm working on a simple shopping cart, and I have problems with suming prices. Now I'm using this:
$query = "SELECT SUM(price) FROM cart WHERE sid='$sid'" ?>
This returns prices sum of all products with the same session id, BUT in table cart I also have field quantity. How can I get the quantity for every field and multiply it withe the price? And in the end of course get the sum of all prudct prices?
I hope you understand me
