-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.php
31 lines (28 loc) · 991 Bytes
/
gallery.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
session_start();
include ('inc/dbconn.php');
require('header.php') ?>
<div class="main">
<ul>
<?php
$SQL = "SELECT * FROM images WHERE private <> 1 ORDER BY timeuploaded DESC";
$result = mysqli_query($cid, $SQL);
if (!$result) {
echo (mysqli_error($cid));
}
else {
while ($row = mysqli_fetch_array($result)) {
echo "<li class=\"image\">";
echo "<a href=\"images/".$row['randomname']."\"><img src=\"thumbs/".$row['randomname']."\" border=\"0\" ></a>";
echo "</li>";
}
}
?>
</ul>
</div>
<p class="footer">© 2007 <a href="http://www.upload-fast.com">Upload-Fast.com</a> - Fast Image Uploads | All Rights Reserved</p>
</div>
<b class="rnd_bottom"><b class="rnd_b4"></b><b class="rnd_b3"></b><b class="rnd_b2"></b><b class="rnd_b1"></b></b>
</div>
</body>
</html>