Jump to content

Adding Up On Several Rows


Silvar

Recommended Posts

Okay, I got this mysql table called guilt_changes where there's a column called amount. There's also a column called belongs which has an ID number.

My script has to take all of the output from all rows with the same ID and add them up together to one value.

 

Can anyone help me with that?

Link to comment
https://forums.phpfreaks.com/topic/272556-adding-up-on-several-rows/
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.