<?php include 'header.php';
include 'admin/config.php';
?>
   <!-- breadcrumb -->
   <div class="site-breadcrumb" style="background: url(assets/img/home/s0.png)">
       <div class="container">
           <h2 class="breadcrumb-title">Gallery</h2>
           <ul class="breadcrumb-menu">
               <li><a href="index.php">Home</a></li>
               <li class="active">Gallery</li>
           </ul>
       </div>
   </div>
   <!-- breadcrumb end -->


   <!-- gallery-area -->
   <div class="gallery-area py-80">
       <div class="container">

           <div class="row popup-gallery justify-content-center">


               <?php
                $sql = "select * from `gallery`";
                $query = mysqli_query($con, $sql);
                if ($query) {
                    foreach ($query as $row) {
                       
                        $image = $row['image'];

                        $image_path = "admin/image/" . $image;

                ?>

                       <div class="col-md-4 wow fadeInUp" data-wow-delay=".25s">
                           <div class="gallery-item">
                               <div class="gallery-img">
                                   <img src="<?php echo $image_path; ?>" alt="">
                               </div>
                               <div class="gallery-content">
                                   <a class="popup-img gallery-link" href="<?php echo $image_path; ?>"><i
                                           class="fal fa-plus"></i></a>
                               </div>
                           </div>
                       </div>

                     

               <?php }
                }
                ?>



           </div>
       </div>
   </div>
   <!-- gallery-area end -->


   <?php include 'footer.php' ?>