<!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>Events</h2>
			<ul class="bread-crumb clearfix">
				<li><a href="index.php">Home</a></li>
				<li>Events</li>
			</ul>
        </div>
    </section>
    <!-- End Page Title -->




	<div class="container mt-5">
	
     <div class="row">
     	                 <?php
   $qry=" select * from events_master  ORDER BY id desc";
          $run=mysqli_query($conn,$qry);



               while($var=mysqli_fetch_assoc($run))

            {
            ?>
          
           	  <div class="col-md-6">
           	  	
             <div class="card">
    <div class="card-body">
	<iframe style="width: 100%;height: 315px;" src="https://www.youtube.com/embed/<?=$var['video_link']?>?si=5UW9s0VEg_9JXJiA" title="Event player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
    </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"; ?>