![]() |
A query to pull just Registered Users email from Users Table
Hi all - thanks in advance... I was curious if anyone could save me a bit of time from tracking down all the normalization...
I am looking for a query to pull just Registered Users email from Users Table. Any help is greatly appreciated. caliman |
Depends on your definition of "registered user". Do you mean just member group 2, or do you want to include admins or other custom usergrops?
select username, email from user where usergroupid in (list,of,allowed,groups) |
Thank you!
I meant just 2, but I hadn't actually thought about me or my mods. --------------- Added at 21:03 --------------- Ok... I admit I was being lazy... I looked all this up... in addition to what you stated as the query, here are the actual groups.. perhaps this will help other lazy people. :) Code:
mysql> desc usergroups; caliman |
Actually on my board I have a handful of extra custom groups, which is why I asked the question
|
Aye. I hadn't thought of that either. lol.
This wine is good. |
If you are really being lazy and only want the email addresses:
AdminCP -> Users -> Generate Mailing List |
Nice Marco!
|
All times are GMT. The time now is 01:05 PM. |
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:
|