<?php
$blog = mysqli_query($dbconn, "select * from blog_tbl");
?>
<div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-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;?>/blog/<?=getValidFileName($blog_sqls['catName']);?>.htm" title="<?php echo $blog_sqls['blogDname'];?>">
                                <div class="image">
                                    <img src="<?=site_url;?>/uploaded-files/blog/images/<?=$blog_sqls['catImage'];?>" alt="<?php echo $blog_sqls['blogDname'];?>" title="<?php echo $blog_sqls['blogDname']; ?>">
                                </div>
                            </a>
                            <h4 class="title_h4"><a href="<?=site_url;?>/blog/<?=getValidFileName($blog_sqls['catName']);?>.htm" title="<?php echo $blog_sqls['blogDname'];?>"><?php echo $blog_sqls['blogDname'];?></a></h4>
                        </div>

                      <?php } ?>


                    </div>

                </div>