<?php $blog = db_query("select * from tbl_blogs where blog_status='Active' order by blog_id desc limit 3");
if(mysqli_num_rows($blog)>0){?>
<section class="news-section">
<div class="auto-container">
<div class="sec-title text-center">
<span class="sub-title">recent news feed</span>
<h3>Latest News & Articles <br>From the Blog.</h3>
</div>

<div class="owl-carousel owl-theme" id="blog-carousel">
<?php while($row=mysqli_fetch_array($blog)){
 $name=wordLimit($row['blog_title'],20);
 $desc = wordLimit(strip_tags($row['blog_description']),80);
?>
<div class="news-block item wow fadeInUp">
<div class="inner-box">
<div class="image-box">
<figure class="image"><a href="latest-updates/<?=$row['blog_url']?>" title="Puneet Immigration Blogs" ><img src="<?=showImage($row['blog_image_name'],'blog')?>" alt="<?=altTitle($row['image_alt'],$row['blog_title'])?>" title="<?=altTitle($row['image_title'],$row['blog_title'])?>"></a></figure>
<span class="date"><b><?=date('d',strtotime($row['blog_add_date']))?></b> <?=date('M',strtotime($row['blog_add_date']))?></span>
</div>
<div class="content-box">
<h4 class="title"><a href="latest-updates/<?=$row['blog_url']?>" title="Puneet Immigration Blogs" ><?=$name?></a></h4>
<a href="latest-updates/<?=$row['blog_url']?>" title="Puneet Immigration Blogs" class="read-more">Read More <i class="fa fa-long-arrow-alt-right"></i></a>
</div>
</div>
</div>
<?php }?>

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