MyBB Community Forums
[How To?] read the average from mybb dbase and insert it into a template - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] read the average from mybb dbase and insert it into a template (/thread-165396.html)



read the average from mybb dbase and insert it into a template - tempo - 2015-01-10

hi,
first of all, i want to read the average from mybb dbase.


then i want to put the average value into a template, so the user can see this value.

Is it possible?

for example i want to read/calculate the average of the field "x1" into a table "table1" into a mybb dbase "dbase1" and store this value into a variable to put it to a template.

thanks