Jump to content

Sum of values in column of query??? HELP


ukweb

Recommended Posts

Hi.

 

I have a table in my database with records of payments. I have a query which selects all records for a specific user.

 

How do I create a figure to represent all payments for that user, so if there are three records for 'fred' where he's made a 5, 22 and a 24 payment, the sum of which is 51. Would I do this at query level or some funky php code to add the values of all records in the query??

 

Thanks

Stephen

Link to comment
https://forums.phpfreaks.com/topic/48646-sum-of-values-in-column-of-query-help/
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.