Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
1,356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <?php
  4. $serwer = "localhost";
  5. $user = "root";
  6. $pass = "";
  7. $baza = "test_baza";
  8. $conn = mysqli_connect($serwer ,$user ,$pass ,$baza);
  9. $result = mysqli_query ($conn, "SELECT * FROM alebat" );
  10. mysqli_close($conn);
  11. ?>
  12.  
  13. <head>
  14. <meta charset="utf-8">
  15. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  16. <title>Formularz</title>
  17. <meta name="viewport" content="width=device-width, initial-scale=1">
  18. <link rel="stylesheet" type="text/css" media="screen" href="main.css">
  19. <style>
  20. </style>
  21. </head>
  22. <body>
  23. <table border="1">
  24. <tr>
  25. <th>Imie</th>
  26. <th>Klasa</th>
  27. <th>Zdolności</th>
  28. </tr>
  29. <?php
  30. while($row = mysqli_fetch_assoc($result)) {
  31. echo "<tr>";
  32. echo "<td>".$row["character"]."</td>";
  33. echo "<td>".$row["class"]."</td>";
  34. echo "<td>".$row["specialabilities"]."</td>";
  35. echo "</tr>";
  36. }
  37. ?>
  38. </table>
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement