Advertisement
Guest User

Untitled

a guest
Apr 10th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <html>
  2. <body>
  3. <?php
  4.  
  5. set_time_limit(0);
  6. $hostname = 'localhost';
  7. $username = 'luckperms';
  8. $password = 'BvmKa8hG8nMzpXHc';
  9. $dbname = 'luckperms';
  10. $link = mysql_connect($hostname, $username, $password) or die("<font color='red'>ERROR => </font>" . mysql_error());
  11. mysql_select_db($dbname, $link);
  12. $primary_group = "owner, admin, gymmaster, mod, helper, ground, dark, fighting, psychic, poisonfairy, waterelectric, ghostnormal, dragonbug, building, gymelder";
  13. $split_primary_group = explode(',', $primary_group);
  14. foreach($split_primary_group as $r){
  15. echo "<b>".$r."</b><br />";
  16. $sql = "SELECT * FROM luckperms_players WHERE primary_group = '".mysql_real_escape_string(trim($r))."'";
  17. $res = mysql_query($sql);
  18. if (mysql_num_rows($res) == 0){
  19. // echo "<p> Currently users are not available.</p>";
  20. } else {
  21. while($row = mysql_fetch_array($res)){
  22. echo $row['username']."<br />";
  23. }
  24. }
  25. echo '<br /><hr />';
  26. }
  27. ?>
  28. </body>
  29. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement