![]() |
Sql queries
I'm trying to write 2 queries and a bit of php with them.
One query which will pull a count of the members in a certain membergroup (not usergroup) and another which will pull the information in the user and userfield tables, again, based on membergroup. can someone give me a hand figuring this out please? |
If it's not an addon usergroup,
[sql] SELECT usergroupid, COUNT(userid) AS membershipcount FROM user GROUP BY usergroupid[/sql] If it's an addon usergroup (a "membergroup", as you say, I guess), it requires PHP handling to explode the membergroupids and use in_array() to find hits. |
so if I understand correctly, if it is a membergroupid (from the user table in vb) I have to set up an array first in order to extract a specific group out of it?
|
All times are GMT. The time now is 03:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|