Simple online food ordering and management system in PHP

The simple online food ordering system in PHP and MYSQL database with the complete zipped source code provided. This system helps in making orders for food online, just like an e commerce website.

Simple online food ordering and management system in PHP
Simple online food ordering and management system in PHP

Table of content

  1. About the simple online food ordering system in PHP
  2. Features of the simple online food ordering system in PHP
  3. Script details
  4. Server Requirements
  5. How to run the downloaded source code
  6. The screenshots

About the simple online food ordering system in PHP

The simple online food ordering and management system in PHP is a system that allows people to make food orders online without going to the store to get it yourself. This system is managed by the administrator. The admin creates dishes and adds price tag to them, so that users who come online to buy foods will know the price before making payments.

The admin manages all the food from the food menu. He can delete and edit a dish. When adding dishes, the admin adds it with the image of the food so people will see exactly the dish they are paying for.

The top dishes or food are displayed on the home page. These are the dishes that people buy mostly. The home page also displays different restaurants and there dishes.

Features of the simple online food ordering system in PHP

  • Dashboard – shows the summary of the website activities. Here you will see the total orders, total user, and dishes etc. This page is only accessible by the admin.  
  • The admin creates dishes.
  • The admin manages all the registered users from the users tab.
  • Admin can edit any user.
  •  Logout system
  •  Admin can add restaurants
  • Admin can add categories
  • Admin can manage all restaurants and dishes under them
  • Manage orders
  • Add dish images
  • Add dish prices
  • Delete and edit dishes
  • Add menu
  • Change delivery status
  • View user details
  • Change order status

Script Details

Written in PHP, HTML, JavaScript
Database MYSQL
Design Bootstrap, CSS
Includes README file
Type web application
Download type Zip file
Download size 8.91mb

Server Requirements

 Almost all servers already have them installed.

  • PHP 6 and higher
  • PHP
  • MYSQL Database

Step by step to run the script (installation)

A server is required to run this project. We will be using XAMPP.

For XAMPP

  1. The script is provided below, click on download to start downloading the script.
  2. Go to your download folder in your Pc and extract the source code folder.
  3. Copy the folder you extracted and paste it in (for XAMPP xampp/htdocs, for WAMPP wampp/www, for LAMPP var/www/html) root directory in your pc.
  4. Open your XAMPP Control panel and start Apache and MYSQL.

Creating a database

  1. Open your browser
  2. Go to this path “http://localhost/phpmyadmin/
  3. Click on New on the left side of the screen.
  4. Create a database named “onlinefoodsystem” (or with any other name you want) and click on create. Read NOTE below first.
  5. Click on the import tab.
  6. Click on browse file and select “onlinefoodsystem.db” from the database folder we extracted.
  7. Click on Go.

NOTE: IF YOU USE ANOTHER DATABASE NAME APART FROM “onlinefoodsystem”, MAKE SURE TO ALSO CHANGE IT IN CONNECT.PHP FILE

After creating a database

  1. Open a new tab on your browser and go to the path. E.g. “http://localhost/Online-food-system/”
  2. The login page will be displayed.
  3. Login using the details below.

Login info

Admin login: http://localhost/Online-food-system/admin/

Username: admin

Password: 123456789 

Screenshots

online dish ordering system - menu page

online ordering system - home page

online dish ordering system - dashboard