Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1-szy kod, będę następnie numerkami podstrony kopiować
- <!DOCTYPE HTML>
- <html lang="pl">
- <head>
- <meta http-equiv="Content-Type" content="text/html">
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <link type="text/css" rel="stylesheet" href="gstyle.css">
- <title>ADTable - Twoja reklama</title>
- </head>
- <body>
- <?php include "php/connection.php"; ?>
- <div class="logo">
- </div>
- <div class="header">
- </div>
- <div class="searching">
- <form action="" method="get">
- <input name="searching" placeholder="Wyszukaj" style="width: 60%; height 60%;"/>
- <button type="submit" value="" style="width 20%; height: 20%;"></button> // Tu się bawiłem XD
- </form>
- </div>
- <div class="lc">
- </div>
- <div class="rc">
- <?php include "php/searching.php"; ?>
- </div>
- <div class="footer">
- </div>
- </body>
- <?php mysqli_close($connection); ?>
- </html>
- 2. -------------------------------------------------------------------------------------
- <?php
- $lh="localhost";
- $user="root";
- $pass="pass";
- $database="adtable";
- $connection = mysqli_connect($lh,$user,$pass,$database);
- ?>
- 3. -------------------------------------------------------------------------------------
- <?php
- $query = mysqli_query("SELECT * FROM servers");
- echo '<table class="searching">';
- if(mysqli_num_rows($query) > 1)
- while($row = mysqli_fetch_array($query)){
- echo "<tr><td>" . $row['place'] . "</td><td>" . $row['name'] . "</td><td>" . $row['members'] . "</td><td>" . $row['region'] . "</td></tr>";
- }
- echo "</table>";
- ?>
- CSS JAKBYŚ CHCIAŁ COŚ ZROBIĆ XD
- 4. -------------------------------------------------------------------------------------
- body{
- width: 100%;
- min-width: 300px;
- height: 720px;
- }
- div.logo{
- width: 15%;
- height: 5%;
- float: left;
- display: block;
- background-color: #f0f0f0;
- }
- div.header{
- width: 75%;
- height: 5%;
- float: left;
- display: block;
- background-color: #0f0f0f;
- }
- div.searching{
- width: 10%;
- height: 5%;
- float: left;
- display: block;
- background-color: #0fff0f;
- }
- div.lc{
- height: 75%;
- width: 15%;
- float: left;
- display: block;
- background-color: #ff0000;
- }
- div.rc{
- height: 75%;
- width: 85%;
- float: left;
- display: block;
- }
- table.searching{
- }
- div.footer{
- width: 100%;
- height: 20%;
- float: left;
- display: block;
- background-color: #00ff00;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement