D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
designpitara.com
/
Filename :
blogleftmenu.php
back
Copy
<div class="col-md-4 col-sm-4 col-xs-12 positionfix"> <div class="left-head-blog"> <div class="left-blog-page"> <div class="left-blog"> <h4>categories</h4> <ul> <?php $cate ="select * from `b_category` WHERE `b_category`.`status`='active' "; $cateresult = mysqli_query($conn,$cate); while( $caterow = mysqli_fetch_assoc($cateresult)){ ?> <li><a href="/category/<?php echo $caterow['url'] ?>"><?php echo $caterow['b_category_name'] ?></a></li> <?php } ?> </ul> </div> </div> <div class="left-blog-page"> <!-- recent start --> <div class="left-blog"> <h4>recent post</h4> <div class="recent-post"> <!-- start single post --> <?php $resql ="select * from `atul_blogs` WHERE `atul_blogs`.`status`='active' order by `atul_blogs`.`id` desc limit 5"; $reresult = mysqli_query($conn,$resql); while($rerow = mysqli_fetch_assoc($reresult)){ $blogs_categ_id = $rerow['blogs_categ_id']; $resql1 ="select * from `b_category` WHERE `b_category`.`id`='$blogs_categ_id'"; $reresult1 = mysqli_query($conn,$resql1); while($rerow1 = mysqli_fetch_assoc($reresult1)){ $b_cat_url = $rerow1['url']; } ?> <div class="recent-single-post"> <div class="post-img"> <a href="/blog/<?php echo $b_cat_url; ?>/<?php echo $rerow['url'] ?>"> <img src="/admin/blogs/blogs-files/<?php echo $rerow['picture']; ?>" alt="<?php echo $rerow['title'] ?>"> </a> </div> <div class="pst-content"> <p> <a href="/blog/<?php echo $b_cat_url; ?>/<?php echo $rerow['url'] ?>"> <?php echo $recentheading = $rerow['title'] ; ?></a></p> <span class="date-type"> <?php echo $rerow['date_add'] ?> </span> </div> </div> <hr> <?php } ?> <!-- End single post --> </div> </div> <!-- recent end --> </div> <?php if(!empty($row['blog_tags'])){?> <div class="left-blog-page"> <div class="left-tags blog-tags"> <div class="popular-tag left-side-tags left-blog"> <h4>popular tags</h4> <ul> <?php $tag = explode(',',$row['blog_tags']); foreach($tag as $c){ if($c == ''){ }else{ ?> <li><a href="javascript:void(0);"><?php echo $c ?></a></li> <?php } } ?> </ul> </div> </div> </div> <?php }?> </div> </div>