loggedIn() ? ($rank ? $name : 'Flashii Members') : 'Login to view'); 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 '