MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.144.101.75
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/leetcoaching.co.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/leetcoaching.co.in/home-blog.php
<style>
    .it-blog-item p{
        font-size:15px;
    }
</style>
<div class="it-blog-area pt-20 pb-20">
    <div class="container">
        <div class="it-blog-title-wrap mb-20">
            <div class="row align-items-end">
                <div class="row">
                    <div class="col-xl-12">
                        <div class="it-gallery-title-box text-center pb-10">
                            <span class="it-section-subtitle-5">
                                <i class="fa-light fa-book"></i>
                                Blogs
                                <i class="fa-light fa-book"></i>
                            </span>
                            <h2 class="it-section-title-3">Our Blogs</h2>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <?php
                    $sqlblg = "SELECT * FROM tbl_blog WHERE `blog_status` = 'Active' ORDER BY `b_id` DESC";
                    $runblg = mysqli_query($db,$sqlblg);
                    if(mysqli_num_rows($runblg) > 0){
                    while($datablg = mysqli_fetch_assoc($runblg)){
                    $dateString=$datablg['date'];
                    $timestamp = strtotime($dateString);
                    $formattedDate = date("d-M-Y", $timestamp);
                    $by=$datablg['submit_by'];
                    $sqlby = "SELECT * FROM tbl_member WHERE m_id='$by'";
                    $runby = mysqli_query($db,$sqlby) or die("Query Not run");
                    $databy = mysqli_fetch_assoc($runby);
                ?>
            <div class="col-xl-4 col-lg-4 col-md-6 mb-30">
                <div class="it-blog-item-box" data-background="assets/img/blog/bg-1.jpg">
                    <div class="it-blog-item">
                        <div class="it-blog-thumb fix">
                            <a href="<?php echo $wspath?>blog<?php echo $datablg['slug_link'];?>.html">
                                <img src="<?php echo $wspath ?>admin/images/property-image/<?php echo $datablg["image"] ?>"  width="100%"></a>
                        </div>
                         <h4><a href="<?php echo $wspath?>blog<?php echo $datablg['slug_link'];?>.html"><?php echo $datablg["title"] ?></a></h4>
                            
                            <?php 
                            echo substr($datablg["short_description"], 0, 130);
                            ?>...
                            <br>
                        <a class="it-btn sm" href="<?php echo $wspath?>blog<?php echo $datablg['slug_link'];?>.html">
                            <span>
                                read more
                                <svg width="17" height="14" viewBox="0 0 17 14" fill="none"
                                    xmlns="http://www.w3.org/2000/svg">
                                    <path d="M11 1.24023L16 7.24023L11 13.2402" stroke="currentcolor" stroke-width="1.5"
                                        stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" />
                                    <path d="M1 7.24023H16" stroke="currentcolor" stroke-width="1.5"
                                        stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" />
                                </svg>
                            </span>
                        </a>
                    </div>
                </div>
            </div>
            <?php } } ?>
        </div>
    </div>
</div>

MMCT - 2023