<?php 
$gallery_sql =mysqli_query($dbconn,"select * from gallery_tbl ORDER BY RAND() limit 4");
if(mysqli_num_rows($gallery_sql)>'0') {
?>
<section class="galleryPic">
            <div class="container">
                <h2 class="catTitle_2">Gallery Pics Of Clinic</h2>
                <div class="clearfix"></div>
                <div id="galleryPic" class="owl-carousel">
                <?php while($gallery_res=mysqli_fetch_assoc($gallery_sql)){ 
    $imglink_gallery= getImage($gallery_res[gallery_image], 376, 376, $gallery_res[gallery_title],"/uploaded-files/gallery/");?>
                    <div class="gallery_item">
                        <a class="hover_effect h_yellow" data-fancybox="photo-gallery"
                            href="<?=site_url;?>/uploaded-files/gallery/<?=$gallery_res['gallery_image'];?>">
                            <img src="<?=$imglink_gallery;?>" alt="<?=$gallery_res['gallery_title'];?>" title="<?=$gallery_res['gallery_title'];?>">
                        </a>
                        <div class="gallery_item_info">
                            <h3 class="title_h3"><?=$gallery_res['gallery_title'];?></h3>
                        </div>
                    </div>
<?php } ?>
                    <!-- <div class="gallery_item">
                        <a class="hover_effect h_yellow" data-fancybox="photo-gallery"
                            href="designer/images/dr.kenil.lathia.jpg">
                            <img src="designer/images/dr.kenil.lathia.jpg" alt="Image">
                        </a>
                        <div class="gallery_item_info">
                            <h3 class="title_h3">Photo Title Here</h3>
                        </div>
                    </div>
                    <div class="gallery_item">
                        <a class="hover_effect h_yellow" data-fancybox="photo-gallery"
                            href="designer/images/dr.kenil.lathia.jpg">
                            <img src="designer/images/dr.kenil.lathia.jpg" alt="Image">
                        </a>
                        <div class="gallery_item_info">
                            <h3 class="title_h3">Photo Title Here</h3>
                        </div>
                    </div>

                    <div class="gallery_item">
                        <a class="hover_effect h_yellow" data-fancybox="photo-gallery"
                            href="designer/images/dr.kenil.lathia.jpg">
                            <img src="designer/images/dr.kenil.lathia.jpg" alt="Image">
                        </a>
                        <div class="gallery_item_info">
                            <h3 class="title_h3">Photo Title Here</h3>
                        </div>
                    </div> -->

                </div>
                <a href="<?=site_url;?>/gallery.htm" class="read_more_1 bg_btn_1">View
                                More<span></span><span></span><span></span><span></span></a>

            </div>
        </section>
        <?php } ?>