<?php
$blog = mysqli_query($dbcon, "select * from blog_tbl");
?>  
<div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-xs-12 col-12">
        <div class="left_sidebar">
               <div class="left_title1">Popular Post</div>
            <?php while ($blog_sqls = mysqli_fetch_array($blog)) { ?>
                <div class="right_news">
                <a href="<?=SITE_URL_PATH;?>/blog/<?=getValidFileName($blog_sqls['catName']);?>.htm" title="<?php echo $blog_sqls['blogDname'];?>">
                  <div class="image">
                    <img src="<?= getImage($blog_sqls['catImage'], 265, 180, $blog_sqls['blogDname'], "/uploaded-files/blog/images/"); ?>" alt="<?php echo $blog_sqls['blogDname'];?>" title="<?php echo $blog_sqls['blogDname'];?>">
                  </div>
                </a>
                <h5><a href="<?=SITE_URL_PATH;?>/blog/<?=getValidFileName($blog_sqls['catName']);?>.htm" title="<?php echo $blog_sqls['blogDname'];?>"><?php echo $blog_sqls['blogDname'];?></a></h5>
              </div>
            <?php } ?>
             
             </div>
      </div>