jbrill Posted July 13, 2007 Share Posted July 13, 2007 hey guys, I have a table where i collect the user's "name" and their "hours" worked. I am trying to add all the numbers together in the "hours" column. how do i do this? Link to comment https://forums.phpfreaks.com/topic/59734-adding-sum-of-fields-from-a-database-help/ Share on other sites More sharing options...
Oldiesmann Posted July 13, 2007 Share Posted July 13, 2007 SELECT SUM(hours) FROM tablename; Link to comment https://forums.phpfreaks.com/topic/59734-adding-sum-of-fields-from-a-database-help/#findComment-296889 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.