Order from Majuro's best

Filter Results

">
By Cuisine
query("SELECT * FROM cuisines ORDER BY name"); $all_cuisines = $cuisine_stmt->fetchAll(PDO::FETCH_ASSOC); $selected_cuisines = isset($_GET['cuisines']) && is_array($_GET['cuisines']) ? $_GET['cuisines'] : []; foreach ($all_cuisines as $cuisine): ?>
>
By Rating
Clear Filters

All Restaurants

0) { $sql .= " HAVING AVG(rt.rating) >= ?"; $params[] = $selected_min_rating; } $sql .= " ORDER BY r.name"; $stmt = db()->prepare($sql); $stmt->execute($params); $restaurants = $stmt->fetchAll(); if (empty($restaurants)) { echo '

No restaurants found matching your criteria.

'; } else { foreach ($restaurants as $restaurant) { // Get cuisines for this restaurant $cuisine_sql = "SELECT c.name FROM cuisines c JOIN restaurant_cuisines rc ON c.id = rc.cuisine_id WHERE rc.restaurant_id = ?"; $cuisine_stmt = db()->prepare($cuisine_sql); $cuisine_stmt->execute([$restaurant['id']]); $restaurant_cuisines_list = $cuisine_stmt->fetchAll(PDO::FETCH_COLUMN); echo ''; echo '' . htmlspecialchars($restaurant['name']) . ''; echo '
'; echo '

' . htmlspecialchars($restaurant['name']) . '

'; echo '

' . htmlspecialchars(implode(', ', $restaurant_cuisines_list)) . '

'; if ($restaurant['rating_count'] > 0) { echo '
'; echo ''; echo '' . htmlspecialchars(number_format($restaurant['average_rating'], 1)) . ''; echo '(' . htmlspecialchars($restaurant['rating_count']) . ' ratings)'; echo '
'; } else { echo '
No ratings yet
'; } echo '
'; echo '
'; } } ?>