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? Quote 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? ??? Quote 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. Quote 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 Quote 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!! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.