MMCT TEAM
1Server IP : 217.21.90.164  /  Your IP : 18.119.108.58
Web Server : LiteSpeed
System : Linux in-mum-web840.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u367232671 ( 367232671)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u367232671/domains/zeropaindentist.com/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u367232671/domains/zeropaindentist.com/public_html/blog.php
<?php
include dirname(__FILE__) . '/inc/config.php';
include dirname(__FILE__) . '/dbh/conn.php';
$id = $_GET['name'];
$sql  = "SELECT * FROM `blogs` WHERE `title` ='$id' LIMIT 1";
$result = mysqli_query($conn, $sql);
$data = mysqli_fetch_assoc($result);
$img = $data['img'];
$title = $data['title'];
$shortDec = $data['shortDec'];
$decs = $data['decs'];
$date = $data['date'];
$TITLE = $title;
$META_DESCRIPTION = $shortDec;
$META_DESCRIPTION_KEY = $shortDec;
?>
<!doctype html>
<html lang="en">

<head>
  <?php include dirname(__FILE__) . "/inc/hedaerlink.php"; ?>
  <meta name="robots" content="index, follow">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="manifest" href="visiontechnology.webmanifest">
  <link rel="shortcut icon" type="image/x-icon" href="<?php echo $BASE_URL; ?>/img/logo/favicon.ico">
  <link href="<?php echo $BASE_URL; ?>/css/bootstrap.min.css" rel="stylesheet">
  <link href="<?php echo $BASE_URL; ?>/css/common-variable.css" rel="stylesheet">
  <link href="<?php echo $BASE_URL; ?>/css/style.css" rel="stylesheet">
  <meta name="description" content="<?= $META_DESCRIPTION ?>">
  <meta property="og:image" content="https://zeropaindentist.com/img/logo/logo.png">
</head>

<body>
  <?php $Service_page = 'active';
  include dirname(__FILE__) . '/inc/nav.php'; ?>
  <div class="container">


    <?php

    echo  "
      <div class='p-2'>
      <img src='./img/blogs/$img' class='w-100'>
      <h4 class='text-danger fw-bold mb-2'>$title</h4>
  <p class='text-secondary'>" . nl2br($decs) . "</p>
  </div>
  ";

    ?>

    <div class="row">

      <?php
      $sql  = "SELECT * FROM `blogs` WHERE `title` != '$id' ORDER BY `id` DESC";
      $result = mysqli_query($conn, $sql);
      while ($data = mysqli_fetch_assoc($result)) {
        $img = $data['img'];
        $title = $data['title'];
        $shortDec = $data['shortDec'];
        $date = $data['date'];
        echo  "
      <div class='col-12 col-sm-6 col-md-4 col-lg-3 col-xl-3 p-2'>
  <a href='blog.php?name=$title' class='text-decoration-none'>
        <div class='bg-white rounded-5 shadow overflow-hidden'>
          <img src='./img/blogs/$img' class='w-100'>
          <div class='p-3 pt-2'>
            <h4 class='text-danger fw-bold mb-2'>$title</h4>
            <p class='text-secondary'>
              $shortDec
            </p>
            <div class='d-flex mt-2'>
              <div class=''>
                <img src='./img/logo/logo.png' class='' style='width: 35px;' alt=''>
              </div>
              <div class='px-2 lh-sm'>
                <p class='text-danger small'>Zero Pain
                  <br>
                  <span class='text-secondary'>$date</span>
      </p>
    </div>
  </div>
  </div>
  </div>
  </a>
  </div>
  ";
      }
      ?>



    </div>


  </div>

  <?php include dirname(__FILE__) . '/inc/footer.php'; ?>
  <script src="<?php echo $BASE_URL; ?>/js/bootstrap.bundle.min.js"></script>
  <script src="<?php echo $BASE_URL; ?>/js/fontawsome.js"></script>
  <script src="<?php echo $BASE_URL; ?>/js/main.js"></script>
</body>

</html>

MMCT - 2023