Foodcart Final Report 3 Project - Removed
Foodcart Final Report 3 Project - Removed
Sr.
No Topics Page No.
1 Acknowledgement 4
2 Introduction 5
4 System Analysis 7
5 Feasibility Study 9
6 System Requirement 10
7 UML Diagram 11
8 Data Directory 17
10 Code 28
11 Conclusion 35
3|Page
Acknowledgement
It gives us great pleasure to acknowledge our sense of gratitude to all Those who have
helped us to complete this project and bring it in its
Present form.We acknowledge our sincere thanks to Miss.A. N. Aher Mam for giving Us the
opportunity to perform the project work and also for her Constant guidance and motivation.We
express our gratitude to Computer
Science Department of ACS College, Manur for providing us the opportunity to prepare this
project.We must also acknowledge our sincere thanks to all the people Associated with Food Ordering
System giving us their much needed Support and valuable information as well as time.Also we would
like to thank our friends for their encouragement and Kind support. It has been a great learning
experience for us.
4|Page
Introduction
The aim of developing Online Food Ordering system project is to replace the traditional way of
taking orders with computerized system. Another important reason for developing this project
is to prepare order summary reports quickly and in correct format at any point of time when
required.
Online Food Ordering System has a very lot of scope. This PHP project can be used by any
restaurants or fast foods for customers for keeping their order records. This project is easy, fast
and accurate. It requires less disk space. Online Food Ordering System uses MYSQL Server as
backend so there is not any chance of data loss or data security.
5|Page
CHARACTERISTICS OF THE PROJECT
1. User Friendly: Online Food Ordering System is a very user friendly project because
the Food Ordering Record and searching from
categories is very simple, fast and data is secured. The user interface of the project is very simple
2. Order reports of the system can be easily generated. User can generate the report of any
particular date and period. In this way they can get delivery status of customers and get
information about what is being ordered.
3. Very less paper work: Online Food Ordering System requires less paper work. In this
project all record is fetched directly into the computer and reports can be generated
through just a click. In this way it saves time. As data is directly entered into computer
so there is no need to do any paper work.
4. Computer operator control: Online Food Ordering System is operated by the staff
members and one admin so there is no chance of clerical mistakes. Data feeding and
retrieving in this system is very easy. So the work can be done on time.
6|Page
System Analysis
• Existing System of Online Food Ordering System:
• In the existing system the exams are done only manually but in proposed
system we have to computerize the exams using this application.
• Time consuming.
8|Page
• Easy maintenance.
• No data redundancy.
• Less time consuming.
• Data is secure.
9|Page
• Itshelpful system travel or work at night women as well as any person.
• In this system, a large volume of data will be handled by the system.
• Various reports provide by the system.
Requirements Analysis
Feasibility study
• After doing the project Online Food Ordering System, study and analyzing
all the existing or required functionalities of the system, the next task is to
do the feasibility study for the project. All projects are feasible - given
unlimited resources and infinite time. Feasibility study includes consideration
of all the possible ways to provide a solution to the given problem. The
proposed solution should satisfy all the user requirements and should be
flexible enough so that future changes can be easily done based on the
future upcoming requirements.
A. Economical Feasibility
• This is a very important aspect to be considered while developing a project. We
decided the technology based on minimum possible cost factor. All hardware and
software cost has to be borne by the organization. Overall we have estimated that
the benefits the organization is going to receive from the proposed system will
surely overcome the initial costs and the later on running cost for system.
B. Technical Feasibility
This included the study of function, performance and constraints that may affect
the ability to achieve an acceptable system. For this feasibility study, we studied
complete functionality to be provided in the system, as described in the
System Requirement Specification (SRS), and checked if everything was
possible using different type of frontend and backend plaformst.
11 | P a g e
C. Operational Feasibility
No doubt the proposed system is fully GUI based that is very user friendly and
all inputs to be taken all self-explanatory even to a layman. Besides, a proper
training has been conducted to let know the essence of the system to the
users so that they feel comfortable with new system. As far our study is
concerned the clients are comfortable and happy as the system has cut down
their loads and doing.
Software Requirement
Hardware Requirement
Internet Connection
UML Diagram
12 | P a g e
1) E-R Diagram: -
13 | P a g e
2) Use case Diagram
14 | P a g e
3) Class Diagram:
15 | P a g e
4) Sequence Diagram:
5)Activity Diagram:
Data Dictionary
id Number Admin Id 50
Primary
key
14 |
Page
Register
Details
15 |
Page
Login Details
16 |
Page
Input & Output Screen
Main screen
Order Screen:
18 |
Page
Customer Registration
Admin Login
19 |
Page
Logo of FoodCart:
CODE
Here’s a simple Online Food Ordering System project in PHP with MySQL. This project
includes user authentication, a menu display, cart functionality, and order system.
CREATE DATABASE
food_ordering; USE
food_ordering;
20 |
Page
Users Table
Name VARCHAR(100),
Password VARCHAR(255)
);
Name VARCHAR(100),
Price DECIMAL(10,2),
Image VARCHAR(255)
);
21 |
Page
Orders Table
User_id INT,
Total_price DECIMAL(10,2),
);
Order_id INT,
Menu_id INT,
Quantity INT,
Price DECIMAL(10,2),
);
22 |
Page
2. Configuration File (config.php)
<?php
$host = “localhost”;
$user = “root”;
$password = “”;
$database = “food_ordering”;
If ($conn->connect_error) {
?>
23 |
Page
3. User Authentication (register.php & login.php)
<?php
Include “config.php”;
If ($_SERVER[“REQUEST_METHOD”] == “POST”) {
$name = $_POST[‘name’];
$email = $_POST[‘email’];
$sql = “INSERT INTO users (name, email, password) VALUES (‘$name’, ‘$email’, ‘$password’)”;
If ($conn->query($sql)) {
24 |
Page
Echo “Registration successful!”;
} else {
?>
<form method=”post”>
<button type=”submit”>Register</button>
</form>
Login (login.php)
<?php
Include “config.php”;
25 |
Page
Session_start();
If ($_SERVER[“REQUEST_METHOD”] == “POST”) {
$email = $_POST[‘email’];
$password = $_POST[‘password’];
$user = $result->fetch_assoc();
$_SESSION[‘user_id’] = $user[‘id’];
Header(“Location: index.php”);
} else {
?>
26 |
Page
<form method=”post”>
<button type=”submit”>Login</button>
</form>
<?php
Include “config.php”;
Echo “<div>
27 |
Page
<img src=’” . $row[‘image’] . “’ width=’100’><br>
“ . $row[‘name’] . “ - $” . $row[‘price’] . “
</form>
</div>”;
?>
28 |
Page
5. Shopping Cart (cart.php)
<?php
Session_start()
If ($_SERVER[“REQUEST_METHOD”] == “POST”) {
$menu_id = $_POST[‘menu_id’];
$quantity = $_POST[‘quantity’];
If (!isset($_SESSION[‘cart’])) {
$_SESSION[‘cart’] = [];
$_SESSION[‘cart’][$menu_id] = $quantity;
?>
29 |
Page
6. Checkout (checkout.php)
<?php
Include “config.php”;
Session_start();
If (!isset($_SESSION[‘user_id’])) {
Exit;
If ($_SERVER[“REQUEST_METHOD”] == “POST”) {
$user_id = $_SESSION[‘user_id’];
$total_price = 0;
$menu = $result->fetch_assoc();
30 |
Page
}
$order_id = $conn->insert_id;
$menu = $menu_result->fetch_assoc();
$_SESSION[‘cart’] = [];
?>
<form method=”post”>
</form>
31 |
Page
7. Admin Panel – Order Management (admin_orders.php)
<?php
Include “config.php”;
<select name=’status’>
<option value=’pending’>Pending</option>
<option value=’completed’>Completed</option>
</select>
<button type=’submit’>Update</button>
</form><hr>”;
?>
33 |
Page
8. Update Order Status (update_order.php)
<?php
Include “config.php”;
If ($_SERVER[“REQUEST_METHOD”] == “POST”) {
$order_id = $_POST[‘order_id’];
$status = $_POST[‘status’];
34 |
Page
$conn->query(“UPDATE orders SET status=’$status’ WHERE id=’$order_id’”);
?>
7. Log in, browse the menu, add items to the cart, and
place an order. 8.
35 |
Page
CONCLUSION
Limitations:
Therefore, conclusion of the proposed system is based on user's need and is user centred.
The system is developed in considering all issues related to all user which are included in
this system. Wide range of people can use this if they know how to operate android smart
phone.
Various issues related to Mess/Tiffin Service will be solved by
providing them a full-fledged system. Thus, implementation of Online Food Ordering
system is done to help and solve one of the important
problems of people. Based on the result of this research, it can be concluded: It helps
customer in making order easily; It gives information needed in making order to
customer. The Food website application made for restaurant and mess can help restaurant
and mess in receiving orders and modifying its data and it is also made for admin so that
it helps admin in controlling all the Food system. With online food ordering system, a
restaurant and mess menu online can be set up and the customers can easily place order.
Also, with a food menu online, tracking the orders is done easily, it maintain customer's
database and improve the food delivery service. The restaurants and mess can even
customize online restaurant menu and upload images easily. Having a restaurant menu on
internet, potential customers can easily access it and place order at their convenience.
Thus, an automated food ordering system is presented with features of
feedback and wireless communication. The proposed system would attract customers and
adds to the efficiency of maintaining the restaurant and mess ordering and billing
sections. Scope of the proposed system is justifiable because in large amount peoples are
shifting to different cities so wide range of people can make a use of proposed system
36 |
Page