<?php 
$video_sql = mysqli_query($dbconn,"select * from video_testimonial_tbl ORDER BY RAND() limit 4");
if(mysqli_num_rows($video_sql)>'0'){ 
?>
<section class="video_testimonial">
        <div class="container">
            <h4 class="h2_title wow fadeInDown" data-wow-delay=".1s">Video Testimonial</h4>
            <div class="row">
<?php while($video_res=mysqli_fetch_array($video_sql)){ ?>
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-6 col-xs-12 col-12 v_testimonial_wrap">
                    <div class="v_testimonial_wrap wow fadeInDown" data-wow-delay=".1s">
                        <a data-fancybox data-width="100%" data-height="auto" href="https://www.youtube.com/watch?v=<?=$video_res['video_url'];?>"><img src="https://img.youtube.com/vi/<?=$video_res['video_url'];?>/hqdefault.jpg" width="306" height="230" alt="Video Tesimonials">
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path></svg></a>
                    </div>
                    <h3><?=$video_res['title'];?></h3>
                </div>
                <?php } ?>
               
          
            </div>
            <a href="<?=site_url;?>/video-testimonial.htm" class="read_more_1 bg_btn_1" title="View More" target="_blank">View More <span></span><span></span><span></span><span></span></a>
        </div>
    </section>
    <?php } ?>