I have 33 forums and I would like to know how many of my members have chosen to receive posts by email. I don't know if I can break it down by forum (ie: forum 1 has 62 members subscribed) or just a total number for all forums.
SELECT COUNT(*) AS Count FROM w3t_Subscribe WHERE S_Board='boardname'
That would give you a number of how many times your 'boardname' was referenced in the Subscription Table.
You could do the same thing to figure out how many boards a particular user subscribed to (if you plugged in user #537, you had 33 boards, and the Count came back 22, he is subscribed to 22 boards).
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.