mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 23:59:35 +05:30
14 lines
448 B
PHP
14 lines
448 B
PHP
<?php
|
|
require 'connection.php';
|
|
require 'query_functions.php';
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
if (isset($_POST['keyword'])) {
|
|
$keyword = $_POST['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);
|
|
}
|
|
}
|
|
?>
|