MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.119.106.66
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/parthaquafresh.com/../deedeecreation.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/parthaquafresh.com/../deedeecreation.in/product.php
<?php
    include_once('admin/config.php');
    $slug_name = $_GET['url_link'];
    if(isset($_SERVER['PATH_INFO'])){
    $slug_name=$_SERVER['PATH_INFO'];
    $querydt="SELECT * FROM `tbl_services` WHERE `url_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["property_name"];
}
?></title>
    <meta name="description" content="<?php echo $datadt["meta_desc"];?>">
    <?php include 'top-link.php';?>
</head>
<body>
<?php include 'header.php';?>
<section class="nav-burger py-3">
    <div class="container">
        <div class="row">
            <div class="col">
                <h2 class="text-center"><?php echo $datadt["property_name"];?></h2>
                <p class="text-center"><a href="<?php echo $wspath?>">Home </a>
                <span> /</span><a> <?php echo $datadt["main_cat"];?> </a>
                <span> /</span> <?php echo $datadt["property_name"];?> </p>
            </div>
        </div>
    </div>
</section>
<section class="product mt-5  py-5">
    <div class="container">
        <div class="row">
            <?php
                $sr_id= $datadt["sr_id"];                      
                $sqlp = "SELECT * FROM `tbl_product` WHERE ser_id ='$sr_id'";
                $runp = mysqli_query($db,$sqlp) or die("Query Not run");
                while($datap = mysqli_fetch_assoc($runp)){
            ?>
            <div class="col-md-4">
                <div class="pro-box">
                    <div class="image-box">
                    <img  class="img-fluid" src="<?php echo $wspath?>admin/images/<?php echo $datap["img1"];?>" alt="<?php echo $datadt["property_name"];?>">
                    </div>
                    <div class="detail-box mt-3">
                        <div class="row">
                            <div class="col-6"><p>Design:</p></div>
                            <div class="col-6"><p><?php echo $datap["product_name"];?></p></div>
                        </div>
                        <div class="row">
                            <div class="col-6"><p>Size :</p></div>
                            <div class="col-6"><p><?php echo $datap["product_detail"];?></p></div>
                        </div>
                        <div class="row">
                            <div class="col-6"><p>Rate :</p></div>
                            <div class="col-6"><p><?php echo $datap["rate"];?></p></div>
                        </div>
                    </div>
                <form action="<?php echo $wspath?>add.php" method="POST">
                    
                    <!--<a href="add.php" class="white-btn mr-10">Add to Cart</a>-->
                    <input name="sr_no" value="<?php echo $datap['p_id'];?>" hidden>
                    <input name="name" value="<?php echo $datap['product_name'];?>" hidden>
                    <input name="price" value="<?php echo $datap['rate'];?>" hidden>
                    <input name="image" value="<?php echo $datap['img1'];?>" hidden>
                    <input name="size" value="<?php echo $datap['product_detail'];?>" hidden>
                    <input name="quantity" value="1" hidden>
                    <button class="btn btn-danger" name="add_product" type="submit">Add To Cart</button>
                </form>
                    <!--<button class="btn btn-danger"> Add To Cart</button>-->
                </div>
            </div>
            <?php } ?>
            
            <!-- ...add new... -->
            <!--<div class="col-md-4">-->
            <!--    <div class="pro-box">-->
            <!--        <div class="image-box">-->
            <!--        <img  class="img-fluid" src="img/basic1.jpg" alt="product">-->
            <!--        </div>-->
            <!--        <div class="detail-box mt-3">-->
            <!--            <div class="row">-->
            <!--                <div class="col-6"><p>Design :</p></div>-->
            <!--                <div class="col-6"><p>2451487</p></div>-->
            <!--            </div>-->
            <!--            <div class="row">-->
            <!--                <div class="col-6"><p>Size :</p></div>-->
            <!--                <div class="col-6"><p>2 X 40</p></div>-->
            <!--            </div>-->
            <!--            <div class="row">-->
            <!--                <div class="col-6"><p>Rate :</p></div>-->
            <!--                <div class="col-6"><p>400-450</p></div>-->
            <!--            </div>-->
            <!--        </div>-->
            <!--        <button class="btn btn-danger"> Add To Cart</button>-->
            <!--    </div>-->
            <!--</div>-->
            <!-- ...add new... -->
        </div>
    </div>
</section>
<?php include 'footer.php';?>
</body>
</html>

MMCT - 2023