GIF89a
<?php ob_start(); ini_set('error_reporting', E_STRICT); /*include("session.php");*/ include("connect.php"); include("libs.php"); mysqli_set_charset($conn,'utf8'); date_default_timezone_set('Asia/Kolkata'); ?> <!DOCTYPE html> <html> <?php include'head.php'; ?> <body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('#searchMe').keyup(function(){ // Search text var text = $(this).val(); if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById("lay22").innerHTML=this.responseText; } }; xmlhttp.open("GET","loadProds.php?text="+text,true); xmlhttp.send(); }); }); </script> <?php include'header.php'; ?> <div onclick="closeNav()"> <div class="container no-gutters"> <div class="row row-spac no-gutters"> <div class="col-md-5 no-gutters" style="margin: auto;padding: 0px;"> <div class="container m-0 p-0"> <div class="row my-1"> <div class="form-group my-1"> <input type="text" class="form-control py-2" name="search" id="searchMe" placeholder="Search Your Favourite Items..."> </div> </div> </div> </div> </div> </div> <div class="container no-gutters my-2"> <div class="row row-spac no-gutters"> <div class="col-md-5 no-gutters" style="margin: auto;padding: 0px;"> <div class="container m-0 p-0"> <div class="row my-1"> <div class="col"> <h6> <i class="bi bi-droplet-fill fs-4 text-success"></i> PRODUCTS </h6> </div> </div> <div id="lay22"></div> </div> </div> </div> </div> </div> <div style="height: 140px;"></div> <?php include 'footer.php';?> <script> function openNav() { document.getElementById("mySidebar").style.width = "250px"; document.getElementById("main").style.marginLeft = "250px"; } function closeNav() { document.getElementById("mySidebar").style.width = "0"; document.getElementById("main").style.marginLeft= "0"; } </script> </body> </html> <div id="snackbar"><span id="snack_msgg" style="color: white"></span></div>