1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

(feat): added basic project search logic

This commit is contained in:
2023-11-16 22:21:47 +05:30
parent 039c33c16f
commit f06cef55e8
2 changed files with 13 additions and 1 deletions

View File

@@ -5,7 +5,8 @@ require 'query_functions.php';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (isset($_POST['keyword'])) {
$keyword = $_POST['keyword'];
echo json_encode(array("keyword-recived" => $keyword));
$results = fetch_search_results($conn, $keyword);
echo json_encode($results);
}
}
?>