Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" href="style.css" type="text/css">
  6. <title>ODBYTNICA</title>
  7. </head>
  8. <body>
  9. <div id="container">
  10. <div id="header">
  11.  
  12. </div>
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. <?php
  21.  
  22. $link = mysqli_connect("127.0.0.1", "root", "", "dupa");
  23.  
  24. if (!$link) {
  25. echo "Error: Unable to connect to MySQL." . PHP_EOL;
  26. echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
  27. echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
  28. exit;
  29. }
  30.  
  31.  
  32.  
  33. $wynik = mysqli_query($link, "select * from cycki")
  34. or die('spierdalaj');
  35.  
  36.  
  37. echo "<table cellpadding=\"2\" border=1>";
  38. echo "<td>dupa</td>";
  39. echo "<td>odbyt</td>";
  40. while ($r = mysqli_fetch_assoc($wynik)) {
  41. echo "<tr>";
  42. echo "<td>".$r['id']."</td>";
  43. echo "<td>".$r['piersi']."</td>";
  44. echo "</tr>";
  45. }
  46.  
  47. echo "</table>";
  48.  
  49.  
  50.  
  51.  
  52. ?>
  53. </div>
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. </body>
  69. </html>
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. *{
  77. padding:0px;
  78. margin:0px;
  79. }
  80.  
  81. body{
  82. height:100%;
  83. width:100%;
  84. background-color:pink;
  85. }
  86.  
  87. #header{
  88. height:10%;
  89. width:100%;
  90. background-color:blue;
  91. }
  92. #container{
  93. width:100%;
  94. height:100%;
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement