prepare("SELECT name FROM restaurants WHERE id = :id"); $stmt->execute(['id' => $restaurant_id]); $restaurant = $stmt->fetch(PDO::FETCH_ASSOC); if ($restaurant) { $restaurant_name = htmlspecialchars($restaurant['name']); } else { die("Restaurant not found."); } } catch (PDOException $e) { die("Database error while fetching restaurant details."); } ?>
| Name | Description | Price | Category | Actions |
|---|