$keyword) { // Use LIKE to match the subcategory $subquery[] = "food_type_subcategory LIKE :food_type_subcategory_{$index}"; $params["food_type_subcategory_{$index}"] = "%{$keyword}%"; } // Join the subqueries with OR to match any of the keywords $query .= " AND (" . implode(' OR ', $subquery) . ")"; } // Random selection with a limit of 1 result $query .= " ORDER BY RAND() LIMIT 1"; // Prepare and execute the query $stmt = $pdo->prepare($query); $stmt->execute($params); $restaurant = $stmt->fetch(); } ?> Restaurant Picker





Selected Restaurant:

 

View Menu



No results found based on your criteria.