ok

Mini Shell

Direktori : /home/importfo/www/aaradhyahospital.com/
Upload File :
Current File : /home/importfo/www/aaradhyahospital.com/blog_detail.php

<?php include("admin/config.php");?>

<!DOCTYPE html>
<html lang="en">
<?php include 'top.php' ?>
<body>
  <div class="wrapper">
  
    <!-- =========================
        Header
    =========================== -->
   <?php include 'header.php' ?>
    <!-- ========================
       page title 
    =========================== -->
  <section class="page-title page-title-layout5 bg-overlay">
     <div class="bg-img"><img src="assets/images/7.jpg" alt="background"></div>
      <div class="container">
        <div class="row">
          <div class="col-12">
            <h1 class="pagetitle__heading">Blog Detail</h1>
            <nav>
              <ol class="breadcrumb mb-0">
                <li class="breadcrumb-item"><a href="index.php">Home</a></li>
                <li class="breadcrumb-item active" aria-current="page">Blog Detail</li>
              </ol>
            </nav>
          </div><!-- /.col-12 -->
        </div><!-- /.row -->
      </div><!-- /.container -->
    </section><!-- /.page-title -->
    <br/>
    <br/>

    <!-- ======================
      Blog Single
    ========================= -->
    <section class="blog blog-single pt-0 pb-80">
      <div class="container">
        <div class="row">
          <div class="col-sm-12 col-md-12 col-lg-8">
            <div class="post-item mb-0">
               <?php
                             if(isset($_GET['slug']))
                           {
                              $slug=$_GET['slug'];
                            }
                            else
                            {
                              $slug=0;
                            }
                            $sql="SELECT * from blog where id='$slug' " ;
                            $res=mysqli_query($db,$sql);
                            $row=mysqli_fetch_array($res);
                            $post_date=$row['post_date'];
                            $post_by=$row['post_by'];
                            $image=$row['image'];
                            $post_desc=$row['post_desc'];
                            ?>
              <div class="post__img">
                <a href="#">
                  <img src="admin/upload/<?php echo $row['image']; ?>" alt="post image" loading="lazy">
                </a>
              </div><!-- /.post-img -->
              <div class="post__body pb-0">
                <div class="post__meta-cat">
                  <a href="#"><?php echo $row['post_date'];?></a>
                </div><!-- /.blog-meta-cat -->
                <h4>
                 <?php echo $row['title'];?>
                </h4>
                <div class="post__desc" style="text-align:justify;">
                  <p style="text-align: justify;"><?php echo $row['post_desc'];?></p>
                 
                
                </div><!-- /.blog-desc -->
              </div>
            </div><!-- /.post-item -->
           
            
            
          </div><!-- /.col-lg-8 -->
          <div class="col-sm-12 col-md-12 col-lg-4">
            <aside class="sidebar">
            
              <div class="widget widget-posts">
                <h5 class="widget__title">Recent Posts</h5>
                <div class="widget__content">
                     <?php
                            $sql="SELECT * from blog order by id ASC LIMIT 5";
                            $res=mysqli_query($db,$sql);
                            while($row=mysqli_fetch_array($res))
                            {
                        ?>
                  <!-- post item #1 -->
                  <div class="widget-post-item d-flex align-items-center">
                    <div class="widget-post__img">
                      <a href="#"><img src="admin/upload/<?php echo $row['image'];?>" alt="thumb"></a>
                    </div><!-- /.widget-post-img -->
                    <div class="widget-post__content">
                      <span class="widget-post__date"><?php echo $row['post_date']; ?></span>
                      <h4 class="widget-post__title"><a href="#"><?php echo $row['title']; ?></a>
                      </h4>
                    </div><!-- /.widget-post-content -->
                  </div><!-- /.widget-post-item -->
                 
                 <?php }?>
                </div><!-- /.widget-content -->
              </div><!-- /.widget-posts -->
            
           
            </aside><!-- /.sidebar -->
          </div><!-- /.col-lg-4 -->
        </div><!-- /.row -->
      </div><!-- /.container -->
    </section><!-- /.blog Single -->

  <?php include 'footer.php' ?>
    <button id="scrollTopBtn"><i class="fas fa-long-arrow-alt-up"></i></button>
  </div><!-- /.wrapper -->

  <script src="assets/js/jquery-3.5.1.min.js"></script>
  <script src="assets/js/plugins.js"></script>
  <script src="assets/js/main.js"></script>
</body>

</html>

Zerion Mini Shell 1.0