shams Posted May 8, 2006 Share Posted May 8, 2006 hi,i want to get the sum of the integers of one column of the mysql table, can any one post the code please, then i can put it in a php code, thanks in advanced for your help. Quote Link to comment https://forums.phpfreaks.com/topic/9313-how-to-get-sum-of-one-mysql-table-column/ Share on other sites More sharing options...
ober Posted May 8, 2006 Share Posted May 8, 2006 SELECT SUM(field_name) AS mysum FROM tablexyz Quote Link to comment https://forums.phpfreaks.com/topic/9313-how-to-get-sum-of-one-mysql-table-column/#findComment-34314 Share on other sites More sharing options...
avo Posted May 8, 2006 Share Posted May 8, 2006 HI Can you explan a little further please.Do you want to count the numer of rows you have filled in a mysqltable ?or? Quote Link to comment https://forums.phpfreaks.com/topic/9313-how-to-get-sum-of-one-mysql-table-column/#findComment-34316 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.