diff --git a/index.php b/index.php index 1a53acb..eb8e4ef 100644 --- a/index.php +++ b/index.php @@ -52,8 +52,8 @@
Find reliable mechanics and genuine spare parts instantly. Get back on the road faster.
diff --git a/search.php b/search.php index afd05aa..6607c1b 100644 --- a/search.php +++ b/search.php @@ -1,25 +1,117 @@ +prepare($sql); + $stmt->execute([ + 'user_role' => $user_role_to_find, + 'location' => '%' . $search_location . '%' + ]); + $results = $stmt->fetchAll(PDO::FETCH_ASSOC); + } + } +} +?> -