Jump to content
MakeWebGames

Optimise Me


Z?v??

Recommended Posts

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'");
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...