Jump to content
MakeWebGames

Hall Of Fame(USER REMOVAL)


Recommended Posts

Hey, in the query you can do WHERE u.user_level = 1 or  u.userid no IN (1,2,3 other staff ids) or u.userid != 1 etc.
The section of code your looking for is this

if(in_array($_GET['action'], $hofqtwo)) {
    if($_GET['action'] == 'total') {
        $us = '(`strength` + `agility` + `guard` + `speed`+ `physical` + `mental` + `endurance`)';
    }
    else {
        $us = '`' . $_GET['action'] . '`';
    }

    $q = $db->query("SELECT u.`userid`, `laston`, `gender`, `donatordays`,
                     `level`, `money`, `diamonds`, `username`, cartel, c.`cartel_PRESIDENT`, c.`cartel_PREF`,
                     `strength`, `agility`, `guard`, `speed`, `physical`, `mental`, `endurance`
                     FROM `users` AS `u`
                     INNER JOIN `userstats` AS `us`
                     ON `u`.`userid` = `us`.`userid`
                     LEFT JOIN `cartels` AS `c`
                     ON `c`.`cartel_ID` = `u`.`cartel`
                     WHERE `u`.`user_level` = 1
                     $myf
                     ORDER BY {$us} DESC, `u`.`userid` ASC
                     LIMIT 25");
}

Hope this helps

 

Edited by corruptcity || skalman
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...