How to display a users totals

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
This user has been denied support. This user has been denied support.
You will need to use count query.
Duplicate thread:
(2012-07-20, 12:21 PM)Yaldaram Wrote: Duplicate thread:

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

Forum Jump:

Users browsing this thread: 1 Guest(s)