Updated Report

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 23

lOMoARcPSD|28011495

VISVESVARAYA TECHNOLOGICAL UNIVERSITY


Jnana Sangama, Belgaum-590018

A Database Management System Mini Project Report


on

ONLINE FOOD ORDERING SYSTEM


Submitted in Partial fulfillment of the Requirements for the V Semester of the Degree of
Bachelor of Engineering In
Computer Science &Engineering
By
ANJALI ARTHAM
(3GN21AI005)

ESHA ELNOORKAR
(3GN21AI008)

J SIRI CHANDANA
(3GN21AI011)

JOSHI AVANTIKA
(3GN21AI013)

Under the Guidance of

Mrs. Netravati Sawale


Asst Professor,Dept.of AIML

GURU NANAK DEV ENGINEERING COLLEGE BIDAR,


MAILOOR ROAD, BIDAR, KARNATAKA-585403
lOMoARcPSD|28011495

GURU NANAK DEV ENGINEERING COLLEGE BIDAR,


MAILOOR ROAD, BIDAR, KARNATAKA-585403

CERTIFICATE
This is to certify that the Database Management System Project work entitled ONLINE
FOOD ORDERING SYSTEM has been carried out by Anjali Artham(3GN21AI005),
Esha Elnoorkar (3GN21AI008) , J siri chandana(3GN21AI011) and Joshi Avantika
(3GN21AI013) bonafied students of Guru Nanak Dev Engineering College, Bidar in
partial fulfillment for the award of Bachelor of Engineering in Artificial Intelligence and
Machine Learning Engineering of the Visvesvaraya Technological University, Belgaum
during the year 2024-2025. It is certified that all corrections/suggestions indicated for Internal
Assessment have been incorporated in the Report deposited in the departmental library. This
DBMS Project Report has been approved as it satisfies the academic requirements in respect
of project work prescribed for the said degree.

----------------- -------------------
Signature of Guide Signature of HOD

Mrs.Netravati Sawale Dr.Dayanand J


Assistant Professor Professor,Head
Dept.of AIML, GNDECB Dept.of AIML,GNDECB

External Viva
Name of the examiners Signature with date
1.

2.
lOMoARcPSD|28011495

PARTICULARS PAGE NO:


ABSTRACT 04
ACKNOWLEDGEMENT 05
CHAPTER 1: 06-08
1.1 INTRODUCTION
1.2 PROBLEM STATEMENT
1.3 OBJECTIVES
1.4 APPLICATION
CHAPTER 2: 09
SYSTEM REQUIRMENTS
2.1 Hardware Requirements
2.2 Software Requirements
CHAPTER 3 : 10-14
DESIGN
3.1 Entity-Relationship Diagram
3.2 Table Creation
3.3 Entity-Relationship Diagram
3.4 Schema Diagram
CHAPTER 4 : 15-20
IMPLEMENTATION
4.1 FRONT END (UI) DESIGN
4.2 SQL SOURCE CODE
CHAPTER 5 : 21-22
5.1 CONCLUSION
5.2 FUTURE ENHANCEMENT
TABLE OF CONTENTS:
lOMoARcPSD|28011495

ABSTRACT

The evolution of technology has significantly impacted the way individuals interact with
businesses, particularly in the food industry. With the advent of online platforms, ordering food
has become more convenient and efficient, catering to the fast-paced lifestyle of modern
consumers. This abstract presents a comprehensive overview of an innovative Online Food
Ordering System (OFOS) designed to revolutionize the traditional food ordering process.

The Online Food Ordering System (OFOS) aims to provide users with a seamless and user-
friendly platform for ordering food from a variety of restaurants. Utilizing a web-based interface
and mobile applications, OFOS offers customers the flexibility to browse menus, place orders,
and make payments with ease. The system employs state-of-the-art technologies to ensure
reliability, security, and speed in processing orders, thereby enhancing the overall user
experience.

Key features of the OFOS include an intuitive interface with customizable search filters,
allowing users to quickly locate their desired cuisine or restaurant. Additionally, the system
incorporates advanced recommendation algorithms to suggest personalized food options based
on user preferences and past orders, enhancing customer satisfaction and engagement.
Integration with GPS technology enables real-time tracking of orders, providing users with
accurate delivery estimates and enhancing transparency in the delivery process.

For restaurant owners, OFOS offers a robust dashboard interface for managing menus, orders,
and customer feedback. The system provides valuable insights through analytics tools, enabling
restaurant owners to optimize their operations, streamline inventory management, and enhance
customer service. Furthermore, OFOS facilitates seamless communication between restaurants
and customers, ensuring timely updates on order status and delivery information.

Overall, the Online Food Ordering System (OFOS) represents a paradigm shift in the food
industry, offering a convenient and efficient solution for both customers and restaurant owners.
By leveraging technology to streamline the ordering process, OFOS aims to enhance customer
satisfaction, increase operational efficiency, and drive business growth in the competitive food
market landscape.

I
lOMoARcPSD|28011495

ACKNOWLEDGE

It gives us a great sense of pleasure to present the report of the B.E Mini Project
undertaken during 5th Semester . We owe a special debt of gratitude to Dr. Dayanand J,
Head of Department of Artificial Intelligence and Machine Learning Engineering ,
Guru Nanak Dev Engineering College , Bidar for his constant support and guidance
throughout the course of our work. His sincerity, thoroughness and perseverance have
been a constant source of inspiration for us. It is only his cognizant efforts that our
endeavors have seen light of day. We also take the opportunity to acknowledge the
contribution of Mrs. Netrawati Sawale of Department of Artificial Intelligence and
Machine Learning Engineering, Guru Nanak Dev Engineering College, Bidar for her
full support and assistance during the development of the project. We also do not like to
miss the opportunity to acknowledge the contribution of all faculty members of the
department for their kind assistance and cooperation during the development of our
project. And at last but not the least , we acknowledge our friends for their contribution in
the completion of the project.

With Regards,

Anjali Artham(3GN21AI005)

Esha Elnoorkar (3GN21AI008)

J siri chandana(3GN21AI011)

Joshi Avantika (3GN21AI013)


ONLINE FOOD ORDERING SYSTEM

Chapter1

1.1 INTRODUCTION
Online food ordering is the process of ordering food from a website. The product can either
be food that has been specially prepared for direct consumption (such as vegetables straight from a
farm or garden, frozen meats, etc.) or food that has not been (such as direct from a certified home
kitchen, restaurant). The effort to create an online food ordering system aims to replace the manual
method of taking orders with a digital one. The ability to rapidly and correctly create order
summary reports whenever necessary is a key factor in the development of this project. The
potential of an online food ordering system is enormous. Any restaurant or fast food chain can use
this PHP project to keep track of customer orders. This project is simple, quick, and precise. There
is less disk space needed. MYSQL Server is used as the backbone by the online food ordering
system, eliminating the risk of data loss and ensuring data security. Customers have the option of
either having the food delivered or picked up. A customer starts by selecting the restaurant of their
choice, then scans the menu, picks an item, and then decides whether they want it delivered or
picked up. Then, when picking up the food, you can pay with cash at the restaurant or with a credit
card or debit card using the app or website. The customer is informed by the website and app about
the food's quality, how long it takes to prepare, and when it will be ready for pick-up or delivery.

1.2 PROBLEM STATEMENT


The problem statement for an online food ordering system involves addressing issues
related to waiting queues in restaurants, the preference for online food delivery, and the need for an
efficient and user-friendly system. Customers seek a seamless experience to place orders, track
deliveries, and provide feedback on food products.
The system aims to enhance meal delivery services, maintain up-to-date customer
information, suggest restaurants based on user ratings, and improve overall quality. It also focuses
on offering transparency between customers and restaurants, providing nutritional information, and
catering to the increasing demand for healthy and affordable food options.
The system should facilitate easy access to home-cooked meals, track nutritional intake,
and ensure a smooth transaction process for all stakeholders involved.
ONLINE FOOD ORDERING SYSTEM

1.3 OBJECTIVES

 Efficient Ordering Process: The system aims to provide customers with a convenient and
user-friendly platform to easily place food orders online, eliminating the need for traditional
queuing mechanism.
 Enhanced Customer Experience: By allowing customers to track their orders, maintain a
database of customer information, and offer feedback on food products, the system enhances
the overall food delivery service and ensures customer satisfaction.
 Restaurant Recommendations: The system is designed to suggest restaurants and hotels
based on user ratings, providing personalized recommendations to enhance the dining
experience.
 Secure Payment Options: Offering both online and pay-on-delivery payment methods, the
system ensures secure transactions and maintains separate accounts for each user for secure
ordering.

1.4 APPLICATIONS
 Restaurants, takeaways, and businesses that sell food to go profit from internet meal
ordering software designed specifically for them. Customers like the ease of online meal
ordering, which is why it is expanding quickly. Expand your sales channels by downloading
our online food ordering application.

 Through this food ordering website, customers may place orders from their computers,
tablets, and cellphones. They can look through your menu options, choose what they want,
and submit an order online. Internet-based payment will also be accepted. Meals can be
picked up in person or delivered to customers.

 There are many benefits to using an online food ordering app or a restaurant ordering app,
including reduced labor expenses, fewer walk-away customers, and shorter wait times. This
restaurant's online ordering system is intended for independent and multi-location chains
that offer food to go, including eateries, fast food outlets, take-out, and other catering
services.

 Putting your company online will enable you to generate a lot more revenue, which will
enhance your marketability. Your online menu will give current clients a terrific new option
to 26 place orders, and new customers will easily find you thanks to well-known search
engines. To complement the style and feel of your present website, the system is tailored. In
the digital age, we help business owners grow their enterprises.
ONLINE FOOD ORDERING SYSTEM

 Increased Revenue: Online food ordering systems can significantly boost revenue for
restaurants by reaching a wider customer base, increasing order frequency, and catering to
the growing demand for online food services

 Convenience for Customers: These systems offer customers the flexibility to place orders at
any time, from anywhere, providing convenience and saving time. Customers can easily
browse menus, customize orders, and track deliveries, enhancing their overall experience

 Efficient Order Management: For restaurants, online food ordering systems streamline order
management processes, reduce communication errors, and improve workflow efficiency.
This leads to better customer service and operational effectiveness

 Future Trends: Embracing mobile apps, live order tracking, easy customization of orders,
and personalized recommendations are key trends shaping the future of online food ordering
systems. These advancements cater to evolving customer preferences and technological
advancements in the industry
ONLINE FOOD ORDERING SYSTEM

Chapter 2

2. SYSTEM REQUIREMENTS

To demonstrate and work with this project there few hardware and software requirements
that are to be satisfied to work with any storage system we need a database installed into our
system and as this project is made as an stand alone application any frontend tool can be used to
design and develop it. The major Hardware and Software requirements are listed below.

2.1 Hardware Requirements

● Any modern updated Operating System (preferably 64-bit architecture)


● Minimum of 4GB RAM
● The Disk space mainly depends on the size of data we will be dealing with ,but
minimum of 1GB is sufficient.

2.2 Software Requirements

1. CLIENT SIDE:
Web Browser - - - Google Chrome or any compatible browser
Operating System - - - Windows or any equivalent OS

2. SERVER SIDE:
Web Server - - - APACHE
Server side Language - - - PHP5.6 or above version
Database Server - - - MYSQL
Web Browser - - - Google Chrome or any compatible browser
Operating System- - - Windows or any equivalent OS
ONLINE FOOD ORDERING SYSTEM

Chapter 3

3. DESIGN
3.1 Entity-Relationship Diagram (ERD): For an online food ordering system
illustrates the relationships between different entities within the system. It serves as a visual
representation of how data is structured and connected in the database. The ERD typically includes
entities like Users, Products, Orders, and their respective attributes and relationships.

3.1.1 Entities:

 User: Represents customers and restaurant staff, with attributes like ID, full name, contact
information, email address, username, and password
 Site Information: Contains details about the food establishment, such as ID, name, description,
contact information, address, user ID (foreign key), and last update
 Payment: Includes attributes like ID, order ID (foreign key), amount, payment method, date,
and processed by.
 Order: Represents customer orders and includes attributes such as ID, customer ID (foreign
key), order date, total amount, order status, and processed by.
 Order Details: Contains information about individual items within an order, with attributes like
ID, order ID (foreign key), menu ID (foreign key), amount, number of servings, and total
amount
 Customer: Represents customers using the system, with attributes including ID, first name, last
name, contact details, profile image, username, password, and account status.
 Rating: Includes attributes like ID, menu ID (foreign key), score, remarks, date recorded, and
customer ID (foreign key).

3.1.2 Attributes:

o tbl_admin table

o tbl_category Table
ONLINE FOOD ORDERING SYSTEM

o tbl_food Table

o tbl_order

 3.2 Table Creation


 tbl_admin Table

CREATE TABLE `tbl_admin` (


`id` int(10) UNSIGNED NOT NULL,
`full_name` varchar(100) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

 tbl_category Table

CREATE TABLE `tbl_category` (


`id` int(10) UNSIGNED NOT NULL,
`title` varchar(100) NOT NULL,
`image_name` varchar(255) NOT NULL,
`featured` varchar(10) NOT NULL,
`active` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ONLINE FOOD ORDERING SYSTEM

 tbl_food Table

CREATE TABLE `tbl_food` (


`id` int(10) UNSIGNED NOT NULL,
`title` varchar(100) NOT NULL,
`description` text NOT NULL,
`price` decimal(10,2) NOT NULL,
`image_name` varchar(255) NOT NULL,
`category_id` int(10) UNSIGNED NOT NULL,
`featured` varchar(10) NOT NULL,
`active` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

 tbl_order Table

CREATE TABLE `tbl_order` (


`id` int(10) UNSIGNED NOT NULL,
`food` varchar(150) NOT NULL,
`price` decimal(10,2) NOT NULL,
`qty` int(11) NOT NULL,
`total` decimal(10,2) NOT NULL,
`order_date` datetime NOT NULL,
`status` varchar(50) NOT NULL,
`customer_name` varchar(150) NOT NULL,
`customer_contact` varchar(20) NOT NULL,
`customer_email` varchar(150) NOT NULL,
`customer_address` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ONLINE FOOD ORDERING SYSTEM

3.3 Entity-RelationshipDiagram:
ONLINE FOOD ORDERING SYSTEM

3.4 Schema Diagram: The schema diagram for a hotel management system defines the
structured data groups and their relationships. It encompasses tables like rooms, payments, hotels,
and customers. Structured data elements interconnect, orchestrating check-in/check-out
procedures, room reservations, and financial transaction
ONLINE FOOD ORDERING SYSTEM

Chapter4

4. IMPLEMENTATION

4.1 FRONT END (UI) DESIGN:


 Navigation and Structure: Implement a navigation bar with links for "Home,"
"About," "Menu," and "Contact Us" in the HTML structure.Ensure a user-friendly interface
with engaging content sections and responsive design.
ONLINE FOOD ORDERING SYSTEM
ONLINE FOOD ORDERING SYSTEM
ONLINE FOOD ORDERING SYSTEM
ONLINE FOOD ORDERING SYSTEM

4.2 SQL :
*<?php
if($_POST)
{
$to_Email = "admin@themes.ads"; //Replace with recipient email address
$subject = 'Bistro - New Contact Inquiry'; //Subject line for emails

//check if its an ajax request, exit if not


if(!isset($_SERVER['HTTP_X_REQUESTED_WITH']) AND
strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') {

//exit script outputting json data


$output = json_encode(
array(
'type'=>'error',
'text' => 'Request must come from Ajax'
));

die($output);
}

//check $_POST vars are set, exit if any missing


if(!isset($_POST["userName"]) || !isset($_POST["userEmail"]) || !
isset($_POST["userMessage"]))
{
$output = json_encode(array('type'=>'error', 'text' => 'Input fields are empty!'));
die($output);
}

//Sanitize input data using PHP filter_var().


$user_Name = filter_var($_POST["userName"], FILTER_SANITIZE_STRING);
$user_Email = filter_var($_POST["userEmail"], FILTER_SANITIZE_EMAIL);

$user_Telephone =" ";

if (isset($_POST["userTelephone"])){
$user_Telephone = filter_var($_POST["userTelephone"], FILTER_SANITIZE_EMAIL);
}

$user_Message = filter_var($_POST["userMessage"], FILTER_SANITIZE_STRING);

//additional php validation


if(strlen($user_Name)<3) // If length is less than 3 it will throw an HTTP error.
{
$output = json_encode(array('type'=>'error', 'text' => 'Name is too short or
empty!'));
die($output);
}
if(!filter_var($user_Email, FILTER_VALIDATE_EMAIL)) //email validation
ONLINE FOOD ORDERING SYSTEM

{
$output = json_encode(array('type'=>'error', 'text' => 'Please enter a valid email!'));
die($output);
}

if(strlen($user_Message)<5) //check emtpy message


{
$output = json_encode(array('type'=>'error', 'text' => 'Too short message! Please
enter something.'));
die($output);
}

$message_Body = "<strong>Name: </strong>". $user_Name ."<br>";


$message_Body .= "<strong>Email: </strong>". $user_Email ."<br>";
$message_Body .= "<strong>Phone No: </strong>". $user_Telephone ."<br>";
$message_Body .= "<strong>Message: </strong>". $user_Message ."<br>";

$headers = "From: " . strip_tags($user_Email) . "\r\n";


$headers .= "Reply-To: ". strip_tags($user_Email) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

//proceed with PHP email.


/*$headers = 'From: '.$user_Email.'' . "\r\n" .
'Reply-To: '.$user_Email.'' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
*/

$sentMail = @mail($to_Email, $subject, $message_Body, $headers);

if(!$sentMail)
{
$output = json_encode(array('type'=>'error', 'text' => 'Could not send mail! Please
check your PHP mail configuration.'));
die($output);
}else{
$output = json_encode(array('type'=>'message', 'text' => 'Hi '.$user_Name .' Thank
you for contacting us.'));
die($output);
}
}
?>*
ONLINE FOOD ORDERING SYSTEM

Chapter 5:

5.1 CONCLUSION
Restaurant Management System is a web-based technology that aids the restaurant industry
in carrying out tasks effectively and efficiently. It aids in managing cash flow for
managers. Managers can view analytics data to assess company growth. The manager can
control orders and employee schedules by using this system. The full complement is a
restaurant management system. It provides access to the Online Order platform, third-party
connectors software, and comprehensive CRM solution, which together cover a sizable
portion of your restaurant's requirements. They are not the outdated hardware and software
sets for restaurants that were previously offered. They are the hottest things around,
smooth, manageable, inexpensive, and quick.
In the "Online Food Ordering Project," we made every effort to meet all the demands of
the restaurant. Because it is straightforward and adaptable, the project is successful. The
biggest benefit of my project is that it draws plenty of users because of its simplicity. A
novice user may operate it with ease. Any type of restaurant can utilize our software. By
automating meal ordering, billing, and inventory control, the restaurant management
system assists the restaurant manager in managing the restaurant more successfully and
efficiently. The system handles the transaction and stores the data produced. These data
will be used to create reports that assist the restaurant manager in making wise business
decisions.
For example, the manager can decide whether more waiters, delivery men, delivery carts,
and cooks are needed based on how many clients will be present during a specific time
period. When this project is finished, all security concerns will be resolved. Additionally, a
quick and secure authentication process will be used for record maintenance. Because it
automatically pulls information about a consumer from the database on subsequent visits,
data entry is quick and easy. As a result, our program will undoubtedly succeed in
replacing the antiquated manual way of storing secure information. The work plan also
specifies the specific front end and back end characteristics of the technology being used in
the project. Future project goals and its scope have been elaborated.
ONLINE FOOD ORDERING SYSTEM

5.2 FUTURE ENHANCEMENT


Each project should pay close attention to future development because it contains the
system's most recent features. It lessens software issues and defects. It develops a close
relationship with customers based on their comments or preferences. Developer will
incorporate certain dynamic elements that are briefly described below into my restaurant
management system.
Reporting module with real time mechanism.

• Modern architecture with smooth transitions.


• System for email and mobile confirmation.
• Selling Point
ONLINE FOOD ORDERING SYSTEM

You might also like