<?php
session_start();
include("includes/database.php");
include("functions/functions.php");
include("count.php");
hit_count();
$get_idef = mysqli_real_escape_string($con, $_GET["category-id"]);
$get_idef = preg_replace("/[^a-z0-9-]/", "", $get_idef);
$get_single = mysqli_query($con, "select * from category where category_urlslug = '$get_idef'");
$_cntGetSing = mysqli_num_rows($get_single);
if($_cntGetSing <= 0){
header("Location: ./");
}else{}
$pro = mysqli_fetch_array($get_single);
$get_id = $pro["category_id"];
$cat_titl = $pro["category_title"];
$cat_pgTitl = $pro["category_pagetitle"];
$cat_pgkeywrds = $pro["category_keywords"];
$cat_pgdesc = $pro["category_desc"];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo $cat_titl; ?> | Babykish</title>
<meta name="keywords" content="<?php echo $cat_pgkeywrds; ?>" />
<meta name="description" content="<?php echo $cat_pgdesc; ?>" />
<?php include("includes/shop-head.php"); ?>
</head>
<body>
<div class="page-wrapper">
<?php include("includes/header.php"); ?>
<main class="main">
<nav class="breadcrumb-nav">
<div class="container">
<ul class="breadcrumb">
<li><a href="./"><i class="d-icon-home"></i></a></li>
<li>Categories</li>
</ul>
</div>
</nav>
<div class="page-content pb-10 mb-3">
<div class="container">
<div class="row gutter-lg main-content-wrap">
<?php include("includes/sidebar.php"); ?>
<div class="col-lg-9 main-content">
<?php include("includes/category-right-products.php"); ?>
</div>
</div>
</div>
</div>
</main>
<?php include("includes/footer.php"); ?>
</body>
</html>