%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_date_tbl WHERE title LIKE ? ORDER BY title LIMIT 0,4");
$search = "{$_POST['keyword']}%";
$sql->bind_param("s", $search);
$sql->execute();
$result = $sql->get_result();
if ($result->num_rows > 0) {
echo '<ul id="modelyear-list" class="d-flex">';
while ($modelyear = $result->fetch_assoc()) {
echo '<li onclick="selectmodelyear(\'' . $modelyear["title"] . '\', ' . $modelyear["id"] . ')">';
echo '<label class="custom-radio">';
echo '<input type="radio" name="year" value="' . $modelyear["id"] . '">';
echo '<span class="radio-btn">';
echo '<div class="hobbies-icon">';
echo '<h6>' . $modelyear["title"] . '</h6>';
echo '</div>';
echo '</span>';
echo '</label>';
echo '</li>';
}
echo '</ul>';
?>
<?php
} else {
echo '<ul id="brand-list">';
echo '<li><a class="poppin" data-bs-toggle="modal" data-bs-target="#FindModelDate" style="font-size: small;">Can not find your Model Date? Click here to send a request!</a></li>';
echo '</ul>';
}
}
?>