Server IP : 103.53.40.154 / Your IP : 3.138.135.4 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/samingpvtltd.com/../parthaquafresh.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php $blog_sql=db_query("select * from tbl_blog where blog_status='Active' order by blog_id desc limit 3"); if(mysqli_num_rows($blog_sql)>0) {?> <section class="blog-area pb-40"> <div class="container"> <div class="section-title"> <h2>Our Blog</h2> </div> <div class="row"> <?php while($blog_res=mysqli_fetch_array($blog_sql)) { ?> <div class="col-lg-4 col-md-6"> <div class="single-blog-post"> <div class="post-image"> <a href="<?=$site_url?>/blogs.html" class="d-block"> <img src="<?=$site_url?>/blog_images/<?=$blog_res['blog_image_name']?>" alt="<?=$blog_res['blog_title']?>" title="<?=$blog_res['blog_title']?>"></a> </div> <div class="post-content"> <h2><?=$blog_res['blog_title']?></h2> <hr> <?php $blog_desc=strip_tags($blog_res['blog_description']); $desc=substr($blog_desc,0,120); ?> <h3><a href="<?=$site_url?>/blogs.html"><?=$desc?>...</a></h3> <ul class="post-meta align-items-center d-flex"> <!-- <li> <div class="flex align-items-center"> <img src="assets/img/user1.jpg" alt="image"> <a href="#"><?=$blog_res['blog_title']?></a> </div> </li> --> <li><?=$blog_res['blog_add_date']?></li> </ul> </div> </div> </div> <?}?> </div> </div> </section> <?}?>