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

(fixed): router and host_config for my local network cross device access

This commit is contained in:
2023-11-18 00:35:46 +05:30
parent 02834eb5f6
commit 771771e061
5 changed files with 28 additions and 8 deletions

View File

@@ -5,7 +5,9 @@ require 'query_functions.php';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (isset($_POST['keyword'])) {
$keyword = $_POST['keyword'];
$results = fetch_search_results($conn, $keyword);
$results_projects = fetch_search_results_projects($conn, $keyword);
$results_socials = fetch_search_results_socials($conn, $keyword);
$results = array_merge($results_projects, $results_socials);
echo json_encode($results);
}
}