Jump to content

Getting the total price


graham23s

Recommended Posts

Hi Guys,

 

i have a table with prices in them kind of like:

 

id  price  user_id

1    2.00    1

2    3.50    6

3    4.25    1

 

say i want the total price of all the users (1 in this case) which would be 2.00 and 4.25 what would be the best way to get the total price i can't think of a way lol

 

cheers

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/90996-getting-the-total-price/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.