Food on Track is a PHP-based online food ordering system that enables customers to browse restaurant menus, add food items to their cart, and place orders seamlessly. The platform provides an Admin Panel for managing menus, tracking customer orders, and updating restaurant details. The system ensures smooth order processing with secure authentication, dynamic menu updates, and order tracking.
- Register and log in securely.
- Browse available food menus and add items to their cart.
- Place and track orders.
- View order history.
- Manage restaurant menus (add, update, and remove food items).
- View and process customer orders.
- Track restaurant sales and customer activity.
graph TD;
A[User Login] -->|Customer| B[Customer Dashboard]
A -->|Admin| C[Admin Dashboard]
B --> D[Browse Menu & Add to Cart]
D --> E[Place Order]
E --> F[Order Confirmation]
F --> G[View Order History]
C --> H[Manage Menu]
C --> I[Track Orders]
C --> J[Update Restaurant Info]
- Role-based login (Customers & Admins).
- Secure session management to prevent unauthorized access.
- Dynamic menu updates with images and pricing.
- Categories and special offers management.
- Admin dashboard for easy menu handling.
- Customers can browse menus and add food items to their cart.
- Real-time order status updates.
- View past orders and invoices.
- Customers can view and track past orders.
- Admins can track and update order status.
- Fully responsive design with Bootstrap & jQuery.
- User-friendly navigation for seamless food ordering.
git clone https://github.com/DarshanScripts/food-on-track.git
- Open phpMyAdmin (or any MySQL database manager).
- Create a new database (e.g.,
food_on_track
). - Import the provided SQL schema from
Database/Schema.sql
. - Open
DBConnection.php
and update the database credentials:
$servername = "localhost";
$username = "root";
$password = "";
$database = "food_on_track";
- Move the project folder to
htdocs
(for XAMPP) orwww
(for WAMP/LAMP). - Start Apache and MySQL services.
- Open a browser and go to:
http://localhost/food-on-track/
food-on-track/
│── README.md # Documentation
│── Admin/ # Admin portal
│ ├── AdminLogin.php # Admin login
│ ├── AdminLogout.php # Admin logout
│ ├── AdminReg.php # Admin registration
│ ├── Dashboard.php # Admin dashboard
│ ├── EditMenu.php # Edit restaurant menu
│ ├── FetchCustomer.php # Retrieve customer data
│ ├── InsertMenu.php # Add new food items
│
│── Customer/ # Customer portal
│ ├── Cart.php # Shopping cart management
│ ├── CustLogin.php # Customer login
│ ├── CustLogout.php # Customer logout
│ ├── CustReg.php # Customer registration
│ ├── FetchItem.php # Retrieve menu items
│ ├── Homepage.php # Main customer interface
│ ├── ViewOrders.php # View past orders
│
│── Database/ # Database configurations
│ ├── DBConnection.php # Handles MySQL connection
│ ├── Schema.sql # Database schema setup
│ ├── foodontrack.sql # Sample database data
│
│── assets/ # Frontend assets
│ ├── jquery-3.2.1.min.js # JavaScript library
│ ├── style.css # Main stylesheet
│ ├── bootstrap/ # Bootstrap UI framework
│ ├── css/ # Bootstrap CSS files
│ ├── js/ # Bootstrap JS files
- PHP & MySQL – Backend logic and database handling.
- HTML, CSS, JavaScript – Frontend development.
- Bootstrap & jQuery – Enhances UI responsiveness.
- AJAX – For real-time order updates.
- Session Management – Secure login authentication.
Developed by Darshan Shah. Connect with me:
- LinkedIn: Darshan Shah
- Facebook: DarshanScripts
- GitHub: DarshanScripts
- Quora: Darshan Shah
- Medium: DarshanScripts
- Fiverr: DarshanScripts