Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- set_time_limit(0);
- $hostname = 'localhost';
- $username = 'luckperms';
- $password = 'BvmKa8hG8nMzpXHc';
- $dbname = 'luckperms';
- $link = mysql_connect($hostname, $username, $password) or die("<font color='red'>ERROR => </font>" . mysql_error());
- mysql_select_db($dbname, $link);
- $primary_group = "owner, admin, gymmaster, mod, helper, ground, dark, fighting, psychic, poisonfairy, waterelectric, ghostnormal, dragonbug, building, gymelder";
- $split_primary_group = explode(',', $primary_group);
- foreach($split_primary_group as $r){
- echo "<b>".$r."</b><br />";
- $sql = "SELECT * FROM luckperms_players WHERE primary_group = '".mysql_real_escape_string(trim($r))."'";
- $res = mysql_query($sql);
- if (mysql_num_rows($res) == 0){
- // echo "<p> Currently users are not available.</p>";
- } else {
- while($row = mysql_fetch_array($res)){
- echo $row['username']."<br />";
- }
- }
- echo '<br /><hr />';
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement