Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <?php
- $serwer = "localhost";
- $user = "root";
- $pass = "";
- $baza = "test_baza";
- $conn = mysqli_connect($serwer ,$user ,$pass ,$baza);
- $result = mysqli_query ($conn, "SELECT * FROM alebat" );
- mysqli_close($conn);
- ?>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>Formularz</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" type="text/css" media="screen" href="main.css">
- <style>
- </style>
- </head>
- <body>
- <table border="1">
- <tr>
- <th>Imie</th>
- <th>Klasa</th>
- <th>Zdolności</th>
- </tr>
- <?php
- while($row = mysqli_fetch_assoc($result)) {
- echo "<tr>";
- echo "<td>".$row["character"]."</td>";
- echo "<td>".$row["class"]."</td>";
- echo "<td>".$row["specialabilities"]."</td>";
- echo "</tr>";
- }
- ?>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement