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 Share on other sites More sharing options...
Mark Baker Posted October 21, 2009 Share Posted October 21, 2009 select sum(numberValue) as total from databaseTable Quote Link to comment Share on other sites More sharing options...
Lukeidiot Posted October 21, 2009 Author Share Posted October 21, 2009 Thank you! Quote Link to comment 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.