Jump to content

add all values of a column in a query


ukweb

Recommended Posts

Hi there.

I am developing a php based program to invoice people, I got a really basic one for you here but I can't for the life of me remember how I did it last time!.

The query selects all outstanding records from an invoice table for a specific user. One of the columns is 'cost'. I want to add all the values of the 'cost' column from the results in the query. How do I do this? many thanks

Stephen
Link to comment
https://forums.phpfreaks.com/topic/30478-add-all-values-of-a-column-in-a-query/
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.