function search_result($search){
$page = 0;
$page_res = 10;
$result = $pdo->prepare("SELECT * FROM salones WHERE service_name LIKE ? LIMIT $page, $page_res");
$result->execute([$search]);
$fetch = $result->fetchAll();
for ($i=0; $i < count($fetch); $i++) {
$fetch_json = json_encode($fetch);
print_r($fetch_json);
}
}