simonp Posted December 1, 2007 Share Posted December 1, 2007 Hi, I have a table with lots of records, eg: 2 7 4 8 32 5 3 . . . and want to be able to display the total of the values in this table - how would I go about that? Cheers Simon Link to comment https://forums.phpfreaks.com/topic/79663-php-mysql-add-up-totals/ Share on other sites More sharing options...
dewey_witt Posted December 1, 2007 Share Posted December 1, 2007 Select sum(`feild_name`) from `where_ever`; the sum() function works good. Link to comment https://forums.phpfreaks.com/topic/79663-php-mysql-add-up-totals/#findComment-403468 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.