<!DOCTYPE html>
<html>
<head>
<?php include 'Head.php'; ?>
</head>

<body>

<div class="page-wrapper">
	
	<!-- Cursor -->
	<?php include "Preloder-And-Cursor.php"; ?>
	<!-- End Preloader -->
	
	<!-- Main Header -->
	<header class="main-header">
    <?php include "Header-Menu.php"; ?>
	</header>
	<!-- End Main Header -->
	
<!-- Page Title -->
    <section class="page-title" style="background-image:url(assets/images/background/page-title.jpg)">
        <div class="auto-container">
			<h2>Gallery</h2>
			<ul class="bread-crumb clearfix">
				<li><a href="index.php">Home</a></li>
				<li>Gallery</li>
			</ul>
        </div>
    </section>
    <!-- End Page Title -->




	<div class="container mt-5">
	
     <div class="row">
     	                 <?php
   $qry=" select * from gallery where type='Gallery' ORDER BY id DESC";
          $run=mysqli_query($conn,$qry);



               while($var=mysqli_fetch_assoc($run))

            {
            ?>
          
           	  <div class="col-md-4">
           	  	 <a href="Gallery-Second.php?gallery_id=<?=$var['gallery_id']?>">
             <div class="card">
    <div class="card-body">
    	<img src="Gallery/<?=$var['file']?>" alt="" style="width: 100%;height: 200px;">
    </div> 
    <div class="card-footer"><?=$var['title']?></div>
  </div>
             </a>
         </div>
            <?php
          }
          
 ?>
       
     </div>
	</div>


<br><br><br><br><br>
	<!-- Footer Style -->
	<?php include "Footer.php"; ?>