thebobby Posted February 4, 2011 Posted February 4, 2011 This show non staff only include "globals.php"; $filters=array( 'nodon' => 'AND donatordays=0', 'don' => 'AND donatordays > 0', 'all' => 'AND user_level =1'); $filter=(isset($filters[$_GET['filter']])) ? $_GET['filter'] : 'all'; $myf=$filters[$filter]; $bt1=($filter=="nodon") ? "" : ""; $bet1=($filter=="nodon") ? "" : ""; $bt2=($filter=="don") ? "" : ""; $bet2=($filter=="don") ? "" : ""; $bt3=($filter=="all") ? "" : ""; $bet3=($filter=="all") ? "" : ""; print " Quote
SilvaTungDevil Posted February 4, 2011 Posted February 4, 2011 WHERE `user_level` != 2 That would work if your asking for what I think your asking.. You want everyone except admins showing right? If so put that at the end of your query before ASC/DESC Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.