Z?v?? Posted June 29, 2007 Share Posted June 29, 2007 Well heres a little something that needs optimized badly. I would appreciate it if someone could help me out. $agm=$db->query("SELECT gmUSER FROM gangmanagers WHERE gmTYPE=1 && gmGANG='{$gangdata['gangID']}'"); $agm=$db->fetch_row($agm); $bgm=$db->query("SELECT gmUSER FROM gangmanagers WHERE gmTYPE=2 && gmGANG='{$gangdata['gangID']}'"); $bgm=$db->fetch_row($bgm); $cgm=$db->query("SELECT gmUSER FROM gangmanagers WHERE gmTYPE=3 && gmGANG='{$gangdata['gangID']}'"); $cgm=$db->fetch_row($cgm); $eagm=$db->query("SELECT username FROM users WHERE userid='{$agm['gmUSER']}'"); $eagm=$db->fetch_row($eagm); $fbgm=$db->query("SELECT username FROM users WHERE userid='{$bgm['gmUSER']}'"); $fbgm=$db->fetch_row($fbgm); $gcgm=$db->query("SELECT username FROM users WHERE userid='{$cgm['gmUSER']}'"); $gcgm=$db->fetch_row($gcgm); $agz=$db->query("SELECT * FROM gangmanagers WHERE gmGANG='{$gangdata['gangID']}' && gmTYPE='1'"); $bgz=$db->query("SELECT * FROM gangmanagers WHERE gmGANG='{$gangdata['gangID']}' && gmTYPE='2'"); $cgz=$db->query("SELECT * FROM gangmanagers WHERE gmGANG='{$gangdata['gangID']}' && gmTYPE='3'"); Quote Link to comment Share on other sites More sharing options...
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.