From 2fd5ee80aa28d21e9d5c051628ae1bde593df86f Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Tue, 23 Sep 2025 16:52:21 +0000 Subject: [PATCH] v1.5 --- index.php | 4 +- search.php | 108 +++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 102 insertions(+), 10 deletions(-) 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 -