boleknowak

Untitled

Jan 4th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?php
  2. echo "<br />";
  3. echo "<table class='table table-bordered'>";
  4. echo "<tr>";
  5. echo "<th>ID</th>";
  6. echo "<th><span class='glyphicon glyphicon-user'></span> Nazwa użytkownika</th>";
  7. echo "<th><span class='glyphicon glyphicon-email'></span> Email</th>";
  8. echo "</tr>";
  9. $conn = new mysqli("mysql.hostinger.pl", "u638954974_admin", "superhaslo123", "u638954974_admin");
  10. $sql = "SELECT * FROM users";
  11. $result = $conn->query($sql);
  12.  
  13. if ($result->num_rows > 0) {
  14. while($row = $result->fetch_assoc()) {
  15. $id = $row['uid'];
  16. $player = $row['uname'];
  17. $email = $row['uemail'];
  18.  
  19. echo "<tr>";
  20.  
  21. echo "<td>" . $id . "</td>";
  22. echo "<td><a href='profile/".$player."'" . $player . "</a></td>";
  23. echo "<td>" . $email . "</td>";
  24.  
  25. echo "</tr>";
  26.  
  27. }
  28. echo "</table>";
  29. }
  30.  
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment