Advertisement
Guest User

Untitled

a guest
May 26th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. 1-szy kod, będę następnie numerkami podstrony kopiować
  2.  
  3. <!DOCTYPE HTML>
  4. <html lang="pl">
  5.  
  6. <head>
  7.  
  8. <meta http-equiv="Content-Type" content="text/html">
  9. <meta charset="utf-8">
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <link type="text/css" rel="stylesheet" href="gstyle.css">
  12. <title>ADTable - Twoja reklama</title>
  13.  
  14. </head>
  15.  
  16. <body>
  17.  
  18. <?php include "php/connection.php"; ?>
  19.  
  20. <div class="logo">
  21.  
  22. </div>
  23.  
  24. <div class="header">
  25.  
  26. </div>
  27.  
  28. <div class="searching">
  29. <form action="" method="get">
  30. <input name="searching" placeholder="Wyszukaj" style="width: 60%; height 60%;"/>
  31. <button type="submit" value="" style="width 20%; height: 20%;"></button> // Tu się bawiłem XD
  32. </form>
  33. </div>
  34.  
  35. <div class="lc">
  36.  
  37. </div>
  38.  
  39. <div class="rc">
  40.  
  41. <?php include "php/searching.php"; ?>
  42. </div>
  43.  
  44. <div class="footer">
  45.  
  46. </div>
  47.  
  48.  
  49.  
  50.  
  51. </body>
  52.  
  53. <?php mysqli_close($connection); ?>
  54. </html>
  55.  
  56. 2. -------------------------------------------------------------------------------------
  57. <?php
  58.  
  59. $lh="localhost";
  60. $user="root";
  61. $pass="pass";
  62. $database="adtable";
  63.  
  64. $connection = mysqli_connect($lh,$user,$pass,$database);
  65.  
  66. ?>
  67.  
  68.  
  69. 3. -------------------------------------------------------------------------------------
  70. <?php
  71.  
  72. $query = mysqli_query("SELECT * FROM servers");
  73.  
  74. echo '<table class="searching">';
  75.  
  76. if(mysqli_num_rows($query) > 1)
  77. while($row = mysqli_fetch_array($query)){
  78. echo "<tr><td>" . $row['place'] . "</td><td>" . $row['name'] . "</td><td>" . $row['members'] . "</td><td>" . $row['region'] . "</td></tr>";
  79. }
  80. echo "</table>";
  81. ?>
  82.  
  83. CSS JAKBYŚ CHCIAŁ COŚ ZROBIĆ XD
  84. 4. -------------------------------------------------------------------------------------
  85. body{
  86. width: 100%;
  87. min-width: 300px;
  88. height: 720px;
  89. }
  90.  
  91. div.logo{
  92. width: 15%;
  93. height: 5%;
  94. float: left;
  95. display: block;
  96. background-color: #f0f0f0;
  97.  
  98. }
  99.  
  100. div.header{
  101. width: 75%;
  102. height: 5%;
  103. float: left;
  104. display: block;
  105. background-color: #0f0f0f;
  106. }
  107.  
  108. div.searching{
  109. width: 10%;
  110. height: 5%;
  111. float: left;
  112. display: block;
  113. background-color: #0fff0f;
  114. }
  115.  
  116. div.lc{
  117. height: 75%;
  118. width: 15%;
  119. float: left;
  120. display: block;
  121. background-color: #ff0000;
  122. }
  123.  
  124. div.rc{
  125. height: 75%;
  126. width: 85%;
  127. float: left;
  128. display: block;
  129. }
  130.  
  131. table.searching{
  132.  
  133. }
  134.  
  135. div.footer{
  136. width: 100%;
  137. height: 20%;
  138. float: left;
  139. display: block;
  140. background-color: #00ff00;
  141. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement