Food Tiger is a simple yet functional online food ordering website developed using PHP, JavaScript, MySQL, and basic CSS. The project is hosted for free using InfinityFree with cPanel and phpMyAdmin support. The application includes two views: one for users to browse and order food, and one for admins to manage the website.
- User Website: https://www.food-tiger.wuaze.com/
- Admin Panel: https://www.food-tiger.wuaze.com/admin
- Video: Click Here...

The core SQL queries used throughout the Admin Panel and Customer View for a food ordering system.
-
Add Admin
INSERT INTO tbl_admin SET full_name = '$full_name', username = '$username', password = '$password';
-
Add Category
INSERT INTO tbl_category SET title = '$title', image_name = '$image_name', featured = '$featured', active = '$active';
-
Add Food
INSERT INTO tbl_food SET title = '$title', description = '$description', price = $price, image_name = '$image_name', category_id = $category, featured = '$featured', active = '$active';
-
Delete Admin
DELETE FROM tbl_admin WHERE id = $id;
-
Delete Category
DELETE FROM tbl_category WHERE id = $id;
-
Delete Food
DELETE FROM tbl_food WHERE id = $id;
-
Update Admin
- Get Details:
SELECT * FROM tbl_admin WHERE id = $id;
- Update:
UPDATE tbl_admin SET full_name = '$full_name', username = '$username' WHERE id = '$id';
- Get Details:
-
Update Category
- Get Details:
SELECT * FROM tbl_category WHERE id = $id;
- Update:
UPDATE tbl_category SET title = '$title', image_name = '$image_name', featured = '$featured', active = '$active' WHERE id = $id;
- Get Details:
-
Update Food
- Get Food Details:
SELECT * FROM tbl_food WHERE id = $id;
- Get Active Categories:
SELECT * FROM tbl_category WHERE active = 'Yes';
- Update:
UPDATE tbl_food SET title = '$title', description = '$description', price = $price, image_name = '$image_name', category_id = '$category', featured = '$featured', active = '$active' WHERE id = $id;
- Get Food Details:
-
Update Order
- Get Order Details:
SELECT * FROM tbl_order WHERE id = $id;
- Update:
UPDATE tbl_order SET qty = $qty, total = $total, status = '$status', customer_name = '$customer_name', customer_contact = '$customer_contact', customer_email = '$customer_email', customer_address = '$customer_address' WHERE id = $id;
- Get Order Details:
-
Update Password
- Validate User:
SELECT * FROM tbl_admin WHERE id = $id AND password = '$current_password';
- Update Password:
UPDATE tbl_admin SET password = '$new_password' WHERE id = $id;
- Validate User:
-
Categories
SELECT * FROM tbl_category;
-
Foods
SELECT * FROM tbl_food;
-
Total Orders
SELECT * FROM tbl_order;
-
Total Revenue (Delivered Orders Only)
SELECT SUM(total) AS Total FROM tbl_order WHERE status = 'Delivered';
- Login
SELECT * FROM tbl_admin WHERE username = '$username' AND password = '$password';
-
Manage Admin
SELECT * FROM tbl_admin;
-
Manage Category
SELECT * FROM tbl_category;
-
Manage Food
SELECT * FROM tbl_food;
-
Manage Order
SELECT * FROM tbl_order ORDER BY id DESC;
-
Display Categories (Active & Featured)
SELECT * FROM tbl_category WHERE active = 'Yes' AND featured = 'Yes' LIMIT 3;
-
Display Featured Foods
SELECT * FROM tbl_food WHERE active = 'Yes' AND featured = 'Yes' LIMIT 6;
-
Get Selected Food Details
SELECT * FROM tbl_food WHERE id = $food_id;
-
Add Order
INSERT INTO tbl_order SET food = '$food', price = $price, qty = $qty, total = $total, order_date = '$order_date', status = '$status', customer_name = '$customer_name', customer_contact = '$customer_contact', customer_email = '$customer_email', customer_address = '$customer_address';
-
Display All Categories (Active Only)
SELECT * FROM tbl_category WHERE active = 'Yes';
-
Category Title by ID
SELECT title FROM tbl_category WHERE id = $category_id;
-
Foods in a Category
SELECT * FROM tbl_food WHERE category_id = $category_id;
- Search by Title or Description
SELECT * FROM tbl_food WHERE title LIKE '%$search%' OR description LIKE '%$search%';
- Display All Active Foods
SELECT * FROM tbl_food WHERE active = 'Yes';
- Search for food items
- Explore food by categories
- View featured food items
- Displays all food categories
- Clicking a category redirects to related food items
- Displays all available foods
- Includes search bar for quick food search
- Static contact information
- Secure login using username and password
- Displays total categories, foods, orders, and revenue
- Add new admin
- Update admin details
- Change password
- Delete admin
- Add, view, and manage categories
- Set categories as Featured and Active
- Add, view, and manage food items
- Fields include title, description, price, image, category, featured, and active status
- View and manage orders
- Includes details: S.N., Food, Price, Quantity, Total, Order Date, Status, Customer Name, Contact, Email, Address, and Actions
- Ends session and redirects to login screen
The application uses a MySQL database with four tables:
- admin β Admin credentials and management
- category β Food categories
- food β Food items with metadata
- order β Customer orders and details
- Frontend: HTML, CSS, JavaScript
- Backend: PHP
- Database: MySQL (phpMyAdmin)
- Hosting: InfinityFree (Free hosting with cPanel support)
-
Clone the repository:
git clone https://github.com/shefat2002/food-tiger.git
-
Import the SQL database using phpMyAdmin
-
Configure the database credentials in
/config/constants.php -
Place the project files in your web server's root directory (e.g.,
htdocsin XAMPP) -
Access the project via
http://localhost/food-tiger
Shefat Mahmud
- GitHub: shefat2002
This project is open-source and free to use for educational purposes.
Feel free to fork and contribute!