Jump to content

[SOLVED] Add up all values?


shedokan

Recommended Posts

I have a table like this:

 

+----+------------+

|  id  |    number    |

+----+------------+

|  1  |      15        |

|  1  |      4        |

|  2  |      29        |

+----+------------+

 

is there any way to select all the rows that are with id 1 and add the up to 15+4=19?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/163299-solved-add-up-all-values/
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.