MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.218.76.193
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/milkodelight.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/milkodelight.com/blog.php
<?php
    include_once('admin/config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Blogs | Milko Delight</title>
    <meta name="description" content="Blogs | Milko Delight">
    <?php include "top-links.php";?>
</head>
<body>
    
<?php include "header.php";?>

 <div class="bd-breadcrumb__area include__bg hero__overlay Breadcrumb__height d-flex align-items-center" data-background="<?php echo $wspath?>assets/img/hero/breadcrumb.jpg">
      <div class="container fluid">
         <div class="row">
            <div class="col-xl-12">
               <div class="bd-breadcrumb__menu">
                  <nav aria-label="Breadcrumbs" class="breadcrumb-trail breadcrumbs">
                     <ul class="trail-items">
                        <li class="trail-item trail-begin"><span><a href="<?php echo $wspath?>">Home</a></span></li>
                        <li class="trail-item trail-end"><span>Blogs</span></li>
                     </ul>
                  </nav>
               </div>
               <div class="bd-breadcrumb__title">
                  <h2>Blogs</h2>
               </div>
            </div>
         </div>
      </div>
   </div>
   
    <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>

<?php include "footer.php";?>

</body>
</html>

MMCT - 2023