Advertisement
Guest User

Untitled

a guest
May 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <?php
  5. $verbindung = mysql_connect("localhost", "root", "tvYK7v4D2b7w")
  6. or die ("An internal error occurred. ");
  7.  
  8. mysql_select_db("acp")
  9. or die ("An internal error occurred. ");
  10.  
  11. $control = 0;
  12. $abfrage = "SELECT * FROM ServerData";
  13. $ergebnis = mysql_query($abfrage);
  14. while($row = mysql_fetch_assoc($ergebnis)) { ?>
  15. <table>
  16. <thead>
  17. <td>ID</td>
  18. <td>Servername</td>
  19. <td>Online</td>
  20. </thead>
  21. <?php
  22. while($row = mysql_fetch_assoc($query)) {
  23. ?>
  24. <tr>
  25. <td>
  26. <a class="users" href="user.php?id=<?php echo $row['id']; ?>"><?php echo $row['id']; ?></a>
  27. </td>
  28. <td>
  29. <a class="user"><?php echo $row['id']; ?></a>
  30. </td>
  31. <td>
  32. <a class="users"><?php echo $row['servername']; ?></a>
  33. </td>
  34. <td>
  35. <a class="users"><?php echo $row['online']; ?></a>
  36. </td>
  37. </tr>
  38. </table>
  39. </head>
  40. <body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement