How jairiidriss/restaurant-website-php-mysql works
This is a PHP/MySQL restaurant site with public menu discovery, food ordering, table reservations, and an administrative console. Customers browse menus and gallery content, then use ordering or reservation pages; staff manage restaurant content, clients, and users. The sampled pages show database access and shared templates, while README documents the product capabilities. Several listed admin pages are unsampled, so their relationships are limited to documented navigation or indexed imports; no email-sending workflow is asserted.
Main entry points: index.php Home and menus · order_food.php Food ordering · table-reservation.php Table reservation · dashboard.php Admin dashboard
Components 27
Customer website
- Home and menus
index.php - Food ordering
order_food.php - Table reservation
table-reservation.php - Contact form handler
Includes/php-files-ajax/contact.php
Restaurant administration
- Admin login
admin/index.php - Admin dashboard
admin/dashboard.php - Menu management
admin/menus.php - Category management
admin/menu_categories.php - Gallery management
admin/gallery.php - Client management
admin/clients.php - User management
admin/users.php - Website settings
admin/website-settings.php - Admin logout
admin/logout.php - Admin AJAX handlers
admin/ajax_files/menus_ajax.php
Shared runtime
- Public utilities
Includes/functions/functions.php - Public header
Includes/templates/header.php - Public navigation
Includes/templates/navbar.php - Public footer
Includes/templates/footer.php - Public DB connection
connect.php - Admin utilities
admin/Includes/functions/functions.php - Admin header
admin/Includes/templates/header.php - Admin navigation
admin/Includes/templates/navbar.php - Admin footer
admin/Includes/templates/footer.php - Admin DB connection
admin/connect.php
Persistence
- Restaurant database
Other components
- Website visitor
- Restaurant staff
Connections 48
- Website visitor → Home and menus: browses
- Website visitor → Food ordering: places order
README.md - Website visitor → Table reservation: reserves table
- Home and menus → Public DB connection: connects through
index.php - Home and menus → Public utilities: includes
index.php - Home and menus → Public header: includes
index.php - Home and menus → Public navigation: includes
index.php - Home and menus → Public footer: includes
index.php - Home and menus → Restaurant database: queries menus and gallery
index.php - Food ordering → Public DB connection: connects through
order_food.php - Food ordering → Public utilities: includes
order_food.php - Food ordering → Public header: includes
order_food.php - Food ordering → Public navigation: includes
order_food.php - Food ordering → Public footer: includes
order_food.php - Food ordering → Restaurant database: reads and writes
- Table reservation → Public DB connection: connects through
table-reservation.php - Table reservation → Public utilities: includes
table-reservation.php - Table reservation → Public header: includes
table-reservation.php - Table reservation → Public navigation: includes
table-reservation.php - Table reservation → Public footer: includes
table-reservation.php - Table reservation → Restaurant database: records reservations
- Contact form handler → Public utilities: imports
Includes/php-files-ajax/contact.php - Restaurant staff → Admin login: signs in
admin/index.php - Admin login → Admin DB connection: connects through
admin/index.php - Admin login → Admin utilities: includes
admin/index.php - Admin login → Admin header: includes
admin/index.php - Admin login → Restaurant database: checks credentials
admin/index.php - Admin login → Admin dashboard: redirects after login
admin/index.php - Admin dashboard → Admin DB connection: connects through
admin/dashboard.php - Admin dashboard → Admin utilities: imports
admin/dashboard.php - Admin dashboard → Admin header: includes
admin/dashboard.php - Admin dashboard → Admin navigation: includes
admin/dashboard.php - Admin dashboard → Admin footer: includes
admin/dashboard.php - Admin dashboard → Restaurant database: reads dashboard data
admin/dashboard.php - Menu management → Admin DB connection: connects through
admin/menus.php - Menu management → Admin utilities: imports
admin/menus.php - Menu management → Admin header: includes
admin/menus.php - Menu management → Admin navigation: includes
admin/menus.php - Menu management → Admin footer: includes
admin/menus.php - Menu management → Restaurant database: manages menu data
admin/menus.php - Admin AJAX handlers → Admin DB connection: imports
admin/ajax_files/menus_ajax.php - Admin AJAX handlers → Admin utilities: imports
admin/ajax_files/menus_ajax.php - Restaurant staff → Client management: manages clients
- Restaurant staff → User management: manages users
- Restaurant staff → Category management: manages categories
- Restaurant staff → Gallery management: manages gallery
- Restaurant staff → Website settings: opens settings
- Restaurant staff → Admin logout: logs out