I'm getting this error after using your code. :ermm:
Code:
Invalid SQL:
SELECT COUNT(field7) AS total,
FROM vb3_userfield
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM vb3_userfield' at line 2
mysql error number: 1064
Let me explain better of what I'm trying to do here..
The site is for a weightloss supprot group and during registering they have a userfield option (field7) where they can put in how much weight they lost. What I'd like is a total of all the members weight loss added up and shown on the forum home page. The code I posted in the first post works somewhat as its returning the amount of tables (members) and its not adding whats in the "Field7" table.. :disappointed: