Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="sv">
  3. <head>
  4. <title>Revolutionen Roleplay</title>
  5.  
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link rel="stylesheet" type="text/css" href="css/style.css">
  9. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  10. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
  11. </head>
  12. <body>
  13.  
  14. <style>
  15. body {
  16. overflow: hidden;
  17. }
  18. </style>
  19.  
  20. <ul>
  21. <a href="index.php"><img src="images/rev.png" alt="Rev Logo" class="rev-nav-logo"><div class="navbar-logo-title">Revolutionen Roleplay</div></a>
  22. <li><a href="login.php">Admin</a></li>
  23. <li><a href="changelog.php" class="current-site-highlight">Changelog</a></li>
  24. <li><a href="staff.php">Staff Team</a></li>
  25. <li><a href="https://discord.gg/janGPMj">Discord</a></li>
  26. <li><a href="ansok.php">Ansök</a></li>
  27. <li><a href="omoss.php">Om Oss</a></li>
  28. <li><a href="index.php">Hem</a></li>
  29. </ul>
  30.  
  31. <?php
  32.  
  33. $servername = "localhost";
  34. $username = "root";
  35. $password = "";
  36. $dbname = "emildeveloping5";
  37.  
  38. // Create connection
  39. $conn = new mysqli($servername, $username, $password, $dbname);
  40. // Check connection
  41. if ($conn->connect_error) {
  42. die("Connection failed: " . $conn->connect_error);
  43. }
  44.  
  45. mysqli_set_charset($conn,"utf8");
  46.  
  47. $sql = "SELECT id, creator, version, updates ORDER BY id DESC";
  48. $result = $conn->query($sql);
  49.  
  50. if ($result->num_rows > 0) {
  51. while($row = $result->fetch_assoc()) {
  52. echo '<div class="dropdown">
  53. <button class="dropbtn">Version: <b>' . $row["version"]. '</b><i class="fas fa-angle-down"></i></button>
  54. <div class="dropdown-content">
  55. <br>
  56. <p></p>
  57. </div></div>';
  58. }
  59. echo '';
  60. } else {
  61. echo "";
  62. }
  63.  
  64. $conn->close();
  65. ?>
  66.  
  67. <footer>
  68. <p class="footer-text">Alla Rättigheter Reserverade | &copy; Revolutionen Roleplay</p>
  69. </footer>
  70. </body>
  71. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement