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? Link to comment https://forums.phpfreaks.com/topic/178496-solved-adding-different-numbers-from-mysql/ 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 Link to comment https://forums.phpfreaks.com/topic/178496-solved-adding-different-numbers-from-mysql/#findComment-941304 Share on other sites More sharing options...
Lukeidiot Posted October 21, 2009 Author Share Posted October 21, 2009 Thank you! Link to comment https://forums.phpfreaks.com/topic/178496-solved-adding-different-numbers-from-mysql/#findComment-941331 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.