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:
@@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user