MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.142.98.111
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/indianherbaltreatment.com/../jaiminimurti.in/../snackpoint.co.nz/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/indianherbaltreatment.com/../jaiminimurti.in/../snackpoint.co.nz/blog-details.php
<?php
    include_once('admin/config.php');
    $slug_name = $_GET['slug_link'];
    if(isset($_SERVER['PATH_INFO'])){
    $slug_name=$_SERVER['PATH_INFO'];
    $querydt="SELECT * FROM `tbl_blog` WHERE `slug_link`='$slug_name'";
    $rundt = mysqli_query($db,$querydt) or die("Query Not run");
    $datadt = mysqli_fetch_assoc($rundt);
 }
 $date = $datadt['date'];
 $dateObject = new DateTime($date);
 $formattedDate = $dateObject->format('F d, Y');
?>
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>
    <?php
    if (isset($datadt["meta_title"]) && !empty($datadt["meta_title"])) {
        echo $datadt["meta_title"];
    } else { 
        echo $datadt["title"];
    }
    ?>
   </title>
   <meta name="description" content="<?php echo $datadt["meta_desc"];?>">
	<?php include "top-links.php";?>

</head>

<body>

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

	<!-- <banner-start> -->
	
	<div class="pq-breadcrumb" style="background-image:url('<?php echo $wspath?>images/blog/breadcrumb.jpg');">
		<div class="container">
			<div class="row align-items-center">
				<div class="col-lg-12">
					<nav aria-label="breadcrumb">
						<div class="pq-breadcrumb-title">
							<h1> <?php echo $datadt['title'];?></h1>
						</div>
						<div class="pq-breadcrumb-container">
							<ol class="breadcrumb">
								<li class="breadcrumb-item">
									<a href="<?php echo $wspath?>">
										<i class="fas fa-home me-2"></i>Home
									</a>
								</li>
								<li class="breadcrumb-item active"><?php echo $datadt['title'];?></li>
							</ol>
						</div>
					</nav>
				</div>
			</div>
		</div>
	</div>
	<!-- < banner-end > -->
	
	<section class="1-colume-grid">
		<div class="container">
			<div class="row">
				<div class="col-xl-9 col-lg-12">
					<div class="pq-blog">
						<div class="row">
							<div class="col-lg-12">
								<div class="pq-blog-post m-0">
									<div class="pq-post-media">
										<img src="<?php echo $wspath?>admin/images/property-image/<?php echo $datadt['image'];?>" alt="<?php echo $datadt['title'];?>" title="<?php echo $datadt['title'];?>">
										<div class="pq-post-date">
											<a href="#">
												<span><?php echo $formattedDate;?></span>
											</a>
										</div>
									</div>
									<div class="pq-blog-contain">
										<!--<div class="pq-post-meta">-->
										<!--	<ul>-->
										<!--		<li class="pq-post-author"><i class="fa fa-user"></i>admin-->
										<!--		</li>-->
										<!--		<li class="pq-post-tag">-->
										<!--			<a href="blog-single.html"><i class="fa fa-tag"></i>Food</a>-->
										<!--		</li>-->
										<!--	</ul>-->
										<!--</div>-->
										<div class="pq-single-blog-info">
											<p><?php echo $datadt['description'];?></p>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-xl-3 col-lg-12 mt-4 mt-xl-0">
					<div class="sidebar">
						<div class="pq-sidebar-post pq-sidebars">
							<div class="pq-main-menu sidebar">
								<h4 class="footer-title">Recent Posts</h4>
								<ul class="pq-block-recent-post-list pq-block-recent-post">
								    <?php
                                        $sqlblog = "SELECT * FROM `tbl_blog` WHERE `blog_status`='Active' ORDER BY b_id DESC LIMIT 6";
                                        $runblog = mysqli_query($db, $sqlblog) or die("Query Not run");
                                        while ($datablog = mysqli_fetch_assoc($runblog)) {
                                        $date = $datablog['date'];
                                        $dateObject = new DateTime($date);
                                        $formattedDate = $dateObject->format('F d, Y');
                                    ?>
									<li><a href="<?php echo $wspath?>blog<?php echo $datablog['slug_link'];?>.html"><?php echo $datablog['title'];?></a> </li>
									<?php } ?>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>

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

</body>

</html>

MMCT - 2023