Lukeidiot Posted October 21, 2009 Share Posted October 21, 2009 Basically I have a mysql database with a couple prices as the following: 9.99 9.99 9.99 49.99 24.50 24.50 How can I add these numbers and display the total from a mysql database? Quote Link to comment https://forums.phpfreaks.com/topic/178418-adding-different-numbers-from-mysql/ Share on other sites More sharing options...
mikesta707 Posted October 21, 2009 Share Posted October 21, 2009 you can use the mysql SUM function to do that very easily. clicky that tutorial explains using it very well Quote Link to comment https://forums.phpfreaks.com/topic/178418-adding-different-numbers-from-mysql/#findComment-940886 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.