Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <link rel="stylesheet" href="style.css" type="text/css">
- <title>ODBYTNICA</title>
- </head>
- <body>
- <div id="container">
- <div id="header">
- </div>
- <?php
- $link = mysqli_connect("127.0.0.1", "root", "", "dupa");
- if (!$link) {
- echo "Error: Unable to connect to MySQL." . PHP_EOL;
- echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
- echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
- exit;
- }
- $wynik = mysqli_query($link, "select * from cycki")
- or die('spierdalaj');
- echo "<table cellpadding=\"2\" border=1>";
- echo "<td>dupa</td>";
- echo "<td>odbyt</td>";
- while ($r = mysqli_fetch_assoc($wynik)) {
- echo "<tr>";
- echo "<td>".$r['id']."</td>";
- echo "<td>".$r['piersi']."</td>";
- echo "</tr>";
- }
- echo "</table>";
- ?>
- </div>
- </body>
- </html>
- *{
- padding:0px;
- margin:0px;
- }
- body{
- height:100%;
- width:100%;
- background-color:pink;
- }
- #header{
- height:10%;
- width:100%;
- background-color:blue;
- }
- #container{
- width:100%;
- height:100%;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement