Raised This Month: $ Target: $400
 0% 

Admin Display from SB


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 11-04-2010 , 09:24   Re: Admin Display from SB
Reply With Quote #14

Code:
$sql = "SELECT user,authid,srv_group,gid FROM sb_admins WHERE srv_group = 'SERVER GROUP 1' OR srv_group = 'SERVER GROUP 2' OR srv_group = 'SERVER GROUP 3' ORDER BY gid ASC";


You need to change your server groups to their real names. Lets say you have one called server admins and one called donators, you need to change it so it looks like:

Code:
$sql = "SELECT user,authid,srv_group,gid FROM sb_admins WHERE srv_group = 'server admins' OR srv_group = 'donators' ORDER BY gid ASC";


Type in the name exactly, thats why its connecting fine and not showing any results. If you have 10 groups and want all but one to be shown then the one you dont want shown use:

WHERE srv_group <> "GROUP NAME"
Rizla is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode