%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/www/website_93b53270/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/www/website_93b53270/find_variant.php
<?php
include "config.php";

if (!empty($_POST["keyword"])) {
    $sql = $conn->prepare("SELECT * FROM variant_tbl WHERE title LIKE  ? ORDER BY title LIMIT 0,6");
    $search = "{$_POST['keyword']}%";
    $sql->bind_param("s", $search);
    $sql->execute();
    $result = $sql->get_result();
    if ($result->num_rows > 0) {
        echo '<ul id="variant-list">';
        while ($variant = $result->fetch_assoc()) {
            echo '<li onclick="selectvariant(\'' . $variant["title"] . '\', ' . $variant["id"] . ')">';
            echo '<img src="images/Upload/variant/' . $variant["image1"] . '" style="width:120px; height: 100px;">&nbsp;' . $variant["title"];
            echo '</li>';
        }
        echo '</ul>'; ?>

<?php
    } else {
        echo '<ul id="variant-list">';
        echo '<li><a class="poppin" data-bs-toggle="modal" data-bs-target="#Findvariant" style="font-size: small;">Can not find your variant? Click here to send a request!</a></li>';
        echo '</ul>';
    }
}
?>

VaKeR 2022