<?php
require('db.php');
include "x.php";
?>
<!doctype html>
<html lang="en">
  <head>
    
     <?php include "include/meta.php"; ?>

     <?php include "include/css.php"; ?>

     <link rel="stylesheet" href="gl/style.css" type="text/css" media="all" />
      <link href="gl/simpleLightbox.css" rel='stylesheet' type='text/css' />
     

  </head>
  <body>
<?php include "include/header.php"; ?>


<section class="w3l-contact-breadcrum">
  <div class="breadcrum-bg py-sm-5 py-4">
    <div class="container py-lg-3">
      <h2>Gallery</h2>
      <p><a href="index.php">Home</a> &nbsp; / &nbsp; Gallery</p>
    </div>
  </div>
</section>
<!--  -->
<section class="w3l-contacts-12" id="contact">
    <div cla ss="contact-top pt-5">
        <div clas s="container py-md-3">
            <div cl ass="row cont-main-top">
              
                  <!-- gallery -->
                  <section class="gallery py-5"> 
                    <div class="container py-xl-5 py-lg-3">
                        <h3 class="title text-capitalize font-weight-light text-dark text-center mb-5">
                        <span class="font-weight-bold">Photo Gallery</span>
                      </h3>
                      <div class="inner-sec pt-md-4">
                        <div class="row proj_gallery_grid">
                          <?php                    
                              $news_sql = "SELECT * FROM gallery   WHERE tby ='$x' ORDER BY id DESC ";
                              $news_run = mysqli_query($con, $news_sql);
                              while ( $news_rows = mysqli_fetch_assoc($news_run) ) {
                                $newsPath = substr($news_rows['image'], 3);
                        $newsPath = "login/".$newsPath;
                              
                               
                                  echo "
                          
                          <div class='col-sm-3 section_1_gallery_grid'>
                            <a href='$newsPath'>
                              <div class='section_1_gallery_grid1'>
                                <img src='$newsPath' 
                     alt='PSHM'  class='img-fluid'  />
                                
                                <div class='proj_gallery_grid1_pos'>
                                
                                  
                                  <font color='yellow'>$news_rows[timage] </font>
                                </div>
                              </div>
                            </a>
                            <br>
                          </div>
                          
                          ";
                                  }
                                ?>
                          
                          
                          
                        </div>
                        
                        
                      </div>
                    </div>
                  </section>
                  <!--//gallery-->

                
                
            </div>
        </div>
      
</section>
<!-- // -->

<?php include "include/footer.php"; ?>
<?php include "include/js.php"; ?>
  <!-- simpleLightbox -->
  <link href="gl/simpleLightbox.css" rel='stylesheet' type='text/css' />
  <script src="gl/simpleLightbox.js"></script>
  <script>
    $('.proj_gallery_grid a').simpleLightbox();
  </script>
    
  <script src="gl/simpleLightbox.js"></script>
  <script>
    $('.proj_gallery_grid a').simpleLightbox();
  </script>

</body>

</html>

