Previous Thread
Next Thread
Print Thread
Hop To
#45370 08/12/2005 2:24 PM
Joined: Jun 2006
Posts: 167
member
member
Joined: Jun 2006
Posts: 167
Can someone give me the command to check for any members that are not assigned to any group?

Thanks

Musky



How's all this "hopie-changie" working out for you???
#45371 08/12/2005 4:34 PM
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
select * form w3t_Users where U_Groups ="";

That says "give me all the information you have on all users who's groups entry is blank."

That what you're looking for?


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
#45372 08/13/2005 3:37 AM
Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
You also might want to try

SELECT * FROM w3t_Users WHERE U_Groups = '-'

As sometimes users with no groups end up with just the separator dash in there.


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
#45373 08/13/2005 5:12 PM
Joined: Jun 2006
Posts: 167
member
member
Joined: Jun 2006
Posts: 167
I tried both of those but got error messages.

Onw of you guys said to use "FORM" in the command and one of you said to use "FROM" in the command. Is that correct??

#45374 08/14/2005 1:24 AM
Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
Yes, it should be "FROM". Also in Dave's it should be two single quotes. ' followed by '


You also could try:

SELECT * FROM w3t_Users WHERE U_Groups LIKE '-' OR U_Groups = ''


(note those are all single quote marks. ' )


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
#45375 08/16/2005 2:07 PM
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
ah, you're right. I read it twice and still didn't see the form. <img src="https://www.ubbcentral.com/boards/images/graemlins/frown.gif" alt="" /> Thanks, Josh.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
#45376 08/17/2005 9:18 PM
Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
S'ok, I've spent hours debugging code I've written only to discover I've typo'd something like that. LOL


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 925 guests, and 159 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)