-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.php
More file actions
57 lines (39 loc) · 1.31 KB
/
gallery.php
File metadata and controls
57 lines (39 loc) · 1.31 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
include "php/db_conn.php";
include 'header/header.php';
?>
<!-- End Header Page -->
<div class="Featured-Galleries container p-4 mt-5">
<h1 class="title text-center border-0 pt-5">Galleries</h1>
<div class="row mt-5">
<?php
$sql = "SELECT * FROM gallery";
$result = mysqli_query($conn, $sql);
$id = 1;
while ($row = mysqli_fetch_array($result)) {
$id = $row['id'];
$imgUrl = $row['image_url'];
$catg = $row['image_cat'];
?>
<div class="col-md-4 work py-3">
<img src="images/<?php echo $row['image_url']; ?>" alt="showcase-image" class="img-fluid">
</div>
<?php
} ?>
</div>
<div class=" d-flex justify-content-center align-items-center my-5">
<button class="btn navGet-btn" id="moreBtn" >
MORE VIEW <i class="fa-solid fa-arrow-down"></i>
</button>
</div>
</div>
<?php
include "footer/footer.php";
?>
<!-- Customized JavScript -->
<script src="js/my-script.js"></script>
<script>
document.getElementById("year").innerHTML = new Date().getFullYear();
</script>
</body>
</html>