Dividing Values by Count????
-
Is it possible to take all the values (numbers) that cfdb-value short codes gives me and divide those numbers by the number that [cfdb-count gives me? I’m trying to get an average number for all the numbers submitted to me.
For example, I’m using [cfdb-value form=”form” show=”text-785″] to get the user submissions – 1,3,5,7. Then I can use [cfdb-count form=”form”] to get 4. How do I add up 1,3,5,7 and divide that sum by the 4?
The submissions and count will always be changing so I need a code to average it out automatically. Help is much appreciated!
http://ww.wp.xz.cn/plugins/contact-form-7-to-database-extension/
The topic ‘Dividing Values by Count????’ is closed to new replies.