diff --git a/admin_restaurants.php b/admin_restaurants.php index 2509949..a570583 100644 --- a/admin_restaurants.php +++ b/admin_restaurants.php @@ -34,6 +34,9 @@ .modal-content { border-radius: 0.5rem; } + .table th, .table td { + vertical-align: middle; + } @@ -41,7 +44,7 @@

Manage Restaurants

-
@@ -59,46 +62,25 @@ Actions - - query("SELECT * FROM restaurants ORDER BY id DESC"); - $restaurants = $stmt->fetchAll(); - foreach ($restaurants as $restaurant) { - echo ""; - echo "" . htmlspecialchars($restaurant['id']) . ""; - echo "" . htmlspecialchars($restaurant['name']) . ""; - echo "" . htmlspecialchars($restaurant['address']) . ""; - echo "" . htmlspecialchars($restaurant['phone']) . ""; - echo "" . htmlspecialchars($restaurant['email']) . ""; - echo ' - - - '; - echo ""; - } - } catch (PDOException $e) { - echo "Error: " . $e->getMessage() . ""; - } - ?> + +
- -