Manage Restaurants

query("SELECT * FROM restaurants ORDER BY id DESC"); $restaurants = $stmt->fetchAll(); foreach ($restaurants as $restaurant) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ''; echo ""; } } catch (PDOException $e) { echo ""; } ?>
ID Name Address Phone Email Actions
" . htmlspecialchars($restaurant['id']) . "" . htmlspecialchars($restaurant['name']) . "" . htmlspecialchars($restaurant['address']) . "" . htmlspecialchars($restaurant['phone']) . "" . htmlspecialchars($restaurant['email']) . "
Error: " . $e->getMessage() . "