MyBB Community Forums

Full Version: How to display a users totals
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I would like to know how to display a users total on their profiles like the total posts but for a different DB table.

I have a table called 'codes' and I have a column for 'username' and I'd like to know the function to use to get a users total codes to display on their profile like total posts. I do have a column in the codes table for 'id' which is the id of every single code.

Thank you
You will need to use count query.
(2012-07-20, 12:21 PM)Yaldaram Wrote: [ -> ]Duplicate thread: http://community.mybb.com/thread-122246.html

No no, that other one is for the total of the whole forum, this thread is for a users totals.