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 '
'; print '

'.$name.'

'; print ''; print '
'; print 'All members'; print '
'; print '
'; foreach($groupArray as $groupData) { print ''; print '
'; print $groupData['mname']; print '
'; print '
'; } print '
'; foreach($userArray as $userData) { $avatar = '/a/' . $userData['id']; print ''; print '
'; print '';
                print $userData['username'];
                print ''; print ''; print $userData['username']; print ''; print '
'; print '
'; } print '
'; } else { ?>

You must be logged in to view this page!

Username
Password