TJMAudio Posted November 13, 2006 Share Posted November 13, 2006 Hi everyone,Alright I have a table that is "dlnum". This contains file names and how many times they have been downloaded. How would I go about looping a query and adding each "dlnum" so I can echo out the total amount of downloads (for all files combined)?Thanks Quote Link to comment https://forums.phpfreaks.com/topic/27154-total-of-all-added-mysql-rows/ Share on other sites More sharing options...
trq Posted November 13, 2006 Share Posted November 13, 2006 SELECT SUM(fieldtocount) AS totalcount FROM dlnum; Quote Link to comment https://forums.phpfreaks.com/topic/27154-total-of-all-added-mysql-rows/#findComment-124136 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.