prepare("DELETE FROM restaurants WHERE id = :id"); $stmt->execute(['id' => $delete_id]); header('Location: admin_portal.php'); exit; } // Fetch Restaurants for Display $restaurants = $pdo->query("SELECT * FROM restaurants")->fetchAll(); ?>
= htmlspecialchars($success) ?>
| Name | Menu Link | Cost Category | Food Type | Subcategory | Actions |
|---|---|---|---|---|---|
| = htmlspecialchars($restaurant['name']) ?> | View Menu N/A | = htmlspecialchars($restaurant['cost_category']) ?> | = htmlspecialchars($restaurant['food_type']) ?> | = htmlspecialchars($restaurant['food_type_subcategory']) ?> | Edit | Delete |