getRankdata($_GET['gid']) && $_GET['gid'] != 0) { $rank = $flashii->getRankdata($_GET['gid'])['gid']; $name = $flashii->getRankdata($rank)['mname']; $desc = $flashii->getRankdata($rank)['descr']; $colour = $flashii->getRankdata($rank)['colour']; } else { $rank = null; $name = 'All members'; $desc = 'The entire list of members of Flashii.'; $colour = null; } switch(@$_GET['view']) { case 2: $view = 2; break; case 1: $view = 1; break; default: $view = 0; } // Print header print desHeader('Dropdown box testing', null, true); if($flashii->loggedIn()) { // Get data from URL and Database $userQuery = $database->query("SELECT * FROM `flashii_users` ".($rank ? "WHERE `userrole` = '".$rank."'" : "WHERE `userrole` != '0'")); $userArray = $userQuery->fetch_all(MYSQLI_ASSOC); $groupQuery = $database->query("SELECT * FROM `flashii_groups` WHERE `gid` != '0'"); $groupArray = $groupQuery->fetch_all(MYSQLI_ASSOC); print '