Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- include 'connect.php';
- include 'menu.php';
- ?>
- <html>
- <head>
- <title>Najnowsze zdjęcia</title>
- <link rel="stylesheet" type="text/css" href="css/style.css" />
- </head>
- <body>
- <h1>
- <?php
- $result=mysqli_query($conn, "SELECT * FROM `zdjecia` ORDER BY `zdjecia`.`data` DESC limit 20");
- ?>
- <div id="zdjecie_big">
- </h1>
- <?php
- while($row=mysqli_fetch_assoc($result))
- {
- echo "<a href='foto.php?zdjecie=".$row['id']."'><img class='zdjecia180' src=img/".$row['id_albumu']."/".$row['id']."></a>";
- }
- ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement