diff --git a/index.php b/index.php index 1a53acb..eb8e4ef 100644 --- a/index.php +++ b/index.php @@ -52,8 +52,8 @@

Your Trusted Mechanic, Just a Click Away.

Find reliable mechanics and genuine spare parts instantly. Get back on the road faster.

- Find a Mechanic - Find Spare Parts + Find a Mechanic + Find Spare Parts
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); + } + } +} +?> - Search - MyMech + <?php echo htmlspecialchars($page_title); ?> - MyMech -