MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.145.9.200
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/procompliance.in/../deedeecreation.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/procompliance.in/../deedeecreation.in/search.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>Search - Dee Dee Creation</title>
<meta name="description" content="Search - Dee Dee Creation">
    <?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">
                <p class="text-center"><a href="<?php echo $wspath?>">Home </a>
                <span> /</span> Search Result </p>
            </div>
        </div>
    </div>
</section>
<section class="product mt-5  py-5">
    <div class="container">
        <div class="row">
            <?php 
           if(isset($_POST['search'])) {
            
                $type_name = $_POST['type_name'];                      
                 $sql = "SELECT * FROM `tbl_product` WHERE product_name LIKE '%$type_name%'";
                $run = mysqli_query($db,$sql) or die("Query Not run");
                while($datap = mysqli_fetch_assoc($run)){
            ?>
            <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 } } ?>
        </div>
    </div>
</section>
<?php include 'footer.php';?>
</body>
</html>

MMCT - 2023