PHP 8.5.2
Preview: gallery.php Size: 3.78 KB
/home/serveshikshafoundation/htdocs/serveshikshafoundation.org.in/gallery.php

<?php 
require('header.php');
?>

        <!-- start page-title -->    
        <section class="page-title">
            <div class="page-title-bg"></div>
            <div class="container">
                <div class="title-box">
                    <h1>Gallery</h1>
                    <ol class="breadcrumb">
                        <li><a href="index.php">Home</a></li>
                        <li class="active">Gallery</li>
                    </ol>
                </div>
            </div> <!-- end container -->
        </section>
       

<!-- start gallery-st2 -->
<section class="gallery-st2 sortable-gallery gallery section-padding">
    <h2 class="hidden">Gallery</h2>
    <div class="container-fluid">
        <div class="row section-title-s3">
            <div class="col col-md-8 col-md-offset-2">
                <h2><span>Our</span> Gallery</h2>
                <p class="black-color">Explore moments captured from our events, training sessions, and community programs that reflect our
                    mission, creativity, and commitment to empowering lives.</p>

            </div>
        </div> <!-- end section-title -->

        <?php
        $sql = "SELECT * FROM gallery";
        $result = mysqli_query($conn, $sql);
        ?>

        <div class="row">
            <div class="col col-lg-12">
                <div class="gallery-filters">
                    <ul>
                        <li><a data-filter="*" href="#" class="current">All Images</a></li>
                    </ul>
                </div>

                <div class="gallery-container popup-gallery">
                    <?php
                    if (mysqli_num_rows($result) > 0) {
                        while ($row = mysqli_fetch_assoc($result)) {
                            $image = htmlspecialchars($row['image_url']);  // image filename or path
                            ?>
                            <div class="box">
                                <a href="admin/html/<?= $image ?>">
                                    <div class="img-holder">
                                        <img style="height:250px; width:100%; background-color:lightgrey; object-fit:cover;" src="admin/html/<?= $image ?>"
                                            alt="Gallery Image" class="img img-responsive">
                                    </div>
                                    <div class="hover-text">
                                        <!-- You can add title or description here if you have those columns -->
                                    </div>
                                </a>
                            </div>
                            <?php
                        }
                    } else {
                        echo "<p>No gallery images found.</p>";
                    }
                    ?>
                  <div class="box">
                                <a href="#">
                                  <video controls muted style="height:250px; width:100%; background-color:lightgrey; object-fit:cover;" src="images/videos/8.mp4"
                                            alt="Gallery Image"  >
                                    <!--<div class="img-holder">
                                        
                                    </div> -->
                                    <div class="hover-text">
                                        <!-- You can add title or description here if you have those columns -->
                                    </div>
                                </a>
                            </div>
                </div>
            </div>
        </div>

        <!-- end row -->
    </div> <!-- end container -->
</section>
<!-- end gallery-st2 -->

<?php 
require('footer.php');
?>

Directory Contents

Dirs: 9 × Files: 13

Name Size Perms Modified Actions
- drwxr-x--- 2026-04-06 05:06:07
Edit Download
admin DIR
- drwxr-xr-x 2025-06-20 19:52:56
Edit Download
css DIR
- drwxr-xr-x 2017-02-09 07:19:34
Edit Download
- drwxr-xr-x 2017-02-06 08:34:56
Edit Download
fonts DIR
- drwxr-xr-x 2017-02-09 07:19:36
Edit Download
images DIR
- drwxr-xr-x 2026-05-12 05:55:39
Edit Download
js DIR
- drwxr-xr-x 2017-02-09 07:19:38
Edit Download
one-page DIR
- drwxr-xr-x 2017-02-09 07:22:46
Edit Download
sass DIR
- drwxr-xr-x 2017-02-09 07:19:38
Edit Download
14.64 KB lrw-r----- 2025-07-01 04:44:27
Edit Download
2.79 KB lrw-r----- 2025-06-28 21:45:06
Edit Download
1.09 KB lrw-r----- 2026-04-08 07:27:29
Edit Download
7.78 KB lrw-r----- 2025-06-30 06:53:01
Edit Download
2.82 KB lrw-r----- 2025-07-04 06:36:48
Edit Download
5.77 KB lrw-r----- 2025-06-30 10:33:33
Edit Download
3.78 KB lrw-r----- 2025-10-14 09:36:36
Edit Download
9.86 KB lrw-r----- 2025-07-04 05:51:14
Edit Download
34.45 KB lrw-r----- 2026-05-12 06:04:21
Edit Download
562 B lrw-r----- 2017-02-09 07:17:08
Edit Download
294.58 MB lrw-r--r-- 2026-04-06 05:07:53
Edit Download
3.84 KB lrw-r----- 2025-07-01 04:55:12
Edit Download
5.77 KB lrw-r----- 2025-06-30 11:30:33
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).