%PDF- %GIF98; %PNG;
Server : ApacheSystem : 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 : |
<?php
include "config.php";
if (!empty($_POST["keyword"])) {
$sql = $conn->prepare("SELECT * FROM model_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="model-list">';
while ($model = $result->fetch_assoc()) {
echo '<li onclick="selectmodel(\''. $model["title"] .'\', '. $model["id"] .')">';
echo '<img src="images/Upload/model/'. $model["image1"] .'" style="width:120px; height: 100px;"> '. $model["title"];
echo '</li>';
}
echo '</ul>';
} else {
echo '<ul id="brand-list">';
echo '<li><a class="poppin" data-bs-toggle="modal" data-bs-target="#FindModel" style="font-size: small;">Can not find your Model? Click here to send a request!</a></li>';
echo '</ul>';
}
}
?>