Tovin Posted January 15, 2008 Share Posted January 15, 2008 This is probably really easy but I can't figure it out. I have a column and the only data in it is numbers. What do I do to add all of these numbers together and create a variable out of the total? Link to comment https://forums.phpfreaks.com/topic/86180-solved-adding-all-numbers-in-a-column/ Share on other sites More sharing options...
darkfreaks Posted January 15, 2008 Share Posted January 15, 2008 code please? ??? Link to comment https://forums.phpfreaks.com/topic/86180-solved-adding-all-numbers-in-a-column/#findComment-440127 Share on other sites More sharing options...
Tovin Posted January 15, 2008 Author Share Posted January 15, 2008 There isn't any. I'm just wondering how I would go about adding all the numbers from one column together. Link to comment https://forums.phpfreaks.com/topic/86180-solved-adding-all-numbers-in-a-column/#findComment-440129 Share on other sites More sharing options...
revraz Posted January 15, 2008 Share Posted January 15, 2008 Assuming you mean in a database, use SUM Link to comment https://forums.phpfreaks.com/topic/86180-solved-adding-all-numbers-in-a-column/#findComment-440133 Share on other sites More sharing options...
Tovin Posted January 15, 2008 Author Share Posted January 15, 2008 Ah. Thanks!! Link to comment https://forums.phpfreaks.com/topic/86180-solved-adding-all-numbers-in-a-column/#findComment-440136 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.