2020-07-24, 05:33 AM
Hello!
I have this code, to count members in a certain group, but I'm unsure how to use it.
I have the template conditionals and php in templates enabled, so I can do it in-template, or I can access the FTP.
I don't mind how, I would just greatly appreciate some information on how to activate the code, and have it print out the appropriate numbers.
Thank you so much!
I have this code, to count members in a certain group, but I'm unsure how to use it.
I have the template conditionals and php in templates enabled, so I can do it in-template, or I can access the FTP.
I don't mind how, I would just greatly appreciate some information on how to activate the code, and have it print out the appropriate numbers.
$countquery = $db->fetch_field(
$db->query("
SELECT COUNT(*) as countquery
FROM ".TABLE_PREFIX."users
WHERE ".TABLE_PREFIX."users.usergroup IN (10)
"), 'countquery');
Thank you so much!