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

1 Project Report for online Food Ordering System

PROJECT REPORT
ON
ONLINE FOOD OERDERING SYSTEM

Submitted in completion of the fourth semester of


Master of Computer Application

Submited To: Submitted By:

Ashish Mishra Rajesh Gupta


Asst. professor AKTU Roll No:
MCA department 1843414921
Batch MCA : 2018-2020

JAGRAN INSTITUTE OF MANAGEMENT


620-W Block Saket Nagar Kanpur
2 Project Report for online Food Ordering System

ACKNOWLEDGEMENT
No learning is complete without proper guidance
This entitled “Online Food Ordering System” could not be complete
without the guidance of Mr. Ashish Mishra (Asst. Professor) for their
invaluable inputs,guidance we deeply express our thanks to those who
have provided invaluable support and guidance that lead to its
successful completion.

I acknowledge with sincerity and a deep sense of gratitude, given to me


by my guide and faculty “Mr. Ashish Mishra ”. His Suggestions and
discussions were enlightening and a constant source of inspiration
during the practical work. His guidance and support encouraged me for
the betterment of the practical work.

Last but not the least; I would like to take the opportunity to express
my thanks to all faculty members and friends for their help.

Thanking You

Student Name : Rajesh Gupta

AKTU Roll No: 1843414921

Batch : 2018-2020
3 Project Report for online Food Ordering System

Certificate

Thia is to certify that the project entitled, “Online Food


Ordering System ” submitted by “Rajesh Gupta” in partial
fulfillment of the requirement for the fourth semester of
“Master of Computer Application “at the ” Jagran Institute of
Management “ is an authentic work carried out by him under
my supervision and guidance.

(Project Guide Name ): Ashish Mishra


(Designation, Name of Institution):
Jagran Institute of Management
4 Project Report for online Food Ordering System

S.No. Topics Page No.

1 Members Description 5

2 Introduction 10

3 Software Description 11

4 Project DFD 14

5 System Requirement Details 25

6 Module Description 11

7 Project Page Screen Shot 12

8 Coding 26

9 Conclusion And Future Scope 95

10 Bibliography 96
5 Project Report for online Food Ordering System

Team Mates of The Project

Candidate No. 1:
Name: Rajesh Gupta

Roll No. : 1843414921

Contact No. : 7355715390

e-mail id: rajeshrishi1611@gmail.com

Batch: 2018-2020

College: Jagran Institute of Management

Candidate No. 2:
Name: Rachit Panday

Roll No. : 1843414922

Contact No. : 8081204098

e-mail id: rachit0409@gmail.comm

Batch: 2018-2020
6 Project Report for online Food Ordering System

College: Jagran Institute of Management

Candidate No. 3:
Name: Bharat Bagani

Roll No. : 1843414907

Contact No. : 7355715390

e-mail id: bbagani51@gmail.com

Batch: 2018-2020

College: Jagran Institute of Management

Candidate No. 4:
Name: Ashish Pandey

Roll No. : 1843414904

Contact No. : 7238848269

e-mail id: ap958184@gmail.com

Batch: 2018-2020

College: Jagran Institute of Management


7 Project Report for online Food Ordering System

Synopsis
Mini Project

Online
Food Ordering
System
Submitted in partial fulfillment of the requirements for qualifying
M.C.A 4th SEM

JAGRAN INSTITUTE OF MANAGEMENT


Kanpur

Submitted To Submitted By
Mr. Ashish Mishra NAME: Rajesh Gupta(1843414922)
(Asst. Professor) Ashish Pandey(1843414904)
Bharat Bagani(1843414907)
Rachit Pandey(1843414921)
Batch:2018-2020

Content
8 Project Report for online Food Ordering System

1. Title of the project


2. Introduction
 Purpose
 Objective
3. Analysis
 Modules
4. System Design
 Data Flow Diagram(DFD)
 Entity Relationship Diagram(ERD)
5. Platform and Tool
 Frontend
 Backend
 Hardware
 Software
9 Project Report for online Food Ordering System

Online
Food Ordering
System
10 Project Report for online Food Ordering System

Introduction:
Online Food Ordering System is a part of e-commerce. E-commerce or
business through net means distributing, buying, selling, marketing, and servicing
of products or services over electronic systems such as the Internet and other
computer networks. Thus if we own a restaurant we need to upload menu online to
attract potential customers.
The online food ordering system gives restaurants the ability to increase
sale and expand their business by giving customers the facility to order food
online.
With an online restaurant menu ordering system, customers can place orders
online 24 *7. Thus it is a simple, fast and convenient food ordering system giving
an edge over the competition at an affordable price.
The restaurants’ can even customize online restaurant menu and upload
images easily. Having restaurant menu on internet, potential customers can easily
access it and place order at their convenience..

Purpose:
We can set up we restaurant menu online and the customers can easily place
order with a simple mouse click. Also with a food menu online we can easily track
the orders, maintain customer's database and improve the food delivery service.
We can receive order through e-mails/ fax or directly view on internet.

Objective:
The main objective of this project is to develop an application which gives
provision to the restaurant owners to flourish their business by uploading menu at
no cost and will invariably lead to higher customer retention and acquisition rates.
11 Project Report for online Food Ordering System

Analysis:
After Analyzing the facts about the Online Food Ordering
System, There We Found Some Modules to work with and
Make the project as flexible as possible.

Modules:

Admin Module: Used for managing the overall activity performed in


the system, as user login, restaurant profile management, Delievery
Boy management, Customer Account management.

Customer Modules: Used for managing the activities over customer


side as placing orders, editing profile and so on.

Delievery Boy Modules: Holds the overall information about Delievery


Boy and Used for managing the Delievery Boy Account from the
Delievery boy side.

Restaurant Modules: Restaurant Modules is related with restaurant


side. In which the restaurant should register itself and upload the
images and prizes on its profile and publicly.
12 Project Report for online Food Ordering System

Home Page

customerPage
13 Project Report for online Food Ordering System

Restaurant Page
14 Project Report for online Food Ordering System

System Design:

Software analysis and design is the intermediate stage, which

helps human-readable requirements to be transformed into

actual code.

Let us see few analysis and design tools used by software

designers:
Data Flow Diagram
Data flow diagram is graphical representation of flow of data in

an information system. It is capable of depicting incoming data

flow, outgoing data flow and stored data. The DFD does not

mention anything about how data flows through the system.

There is a prominent difference between DFD and Flowchart.

The flowchart depicts flow of control in program modules.

DFDs depict flow of data in the system at various levels. DFD

does not contain any control or branch elements.


15 Project Report for online Food Ordering System

Data Flow Diagram(DFD):


Zero Level DFD (0 Level):

Admin Delievery Boy


Management Management

Online food
ordering
system

Customer Restaurant
Management Management
16 Project Report for online Food Ordering System

First Level DFD for Customer:


Request
Request Search item
Customer
Suggesions
Response Response

Request
Request
Login User Database

Response Response

Request Request

Register
User Database

Response
Response

Request Request

Payment & User Database


place Orders

Response
Response
17 Project Report for online Food Ordering System

First Level DFD for Restaurant:


Request
Request
Search item
Restaurant
Suggesions
Response Response

Request
Request
Login & Restaurant
Database
Register

Response Response

Request Request

Add
Item Database
Item
Response
Response

Request Request

Manage Restaurant Database


delievery
Boy
Response
Response
18 Project Report for online Food Ordering System

First Level DFD for Delievary Boy:


Request Request

Delievery Boy Login &

Register
Response Response

Request
Request
Account User Database

Managemen
t
Response Response
19 Project Report for online Food Ordering System

First Level DFD for Admin:


Request
Request

Admin Login User Database

Response Response

Request
Request
Manage User Database
customer
A/c

Response Response

Request Request

Manage
Item Database
Restaurant
A/c
Response
Response

Request Request

Manage Restaurant Database


delievery
Boy A/c
Response
Response

Request Request

Manage all Financial Database


Financial A/c
Response
Response
20 Project Report for online Food Ordering System

ER Diagram:

The ER or (Entity Relational Model) is a high-level


conceptual data model diagram. Entity-Relation model is
based on the notion of real-world entities and the
relationship between them.
ER modeling helps you to analyze data requirements
systematically to produce a well-designed database. So, it
is considered a best practice to complete ER modeling
before implementing your database.
21 Project Report for online Food Ordering System
22 Project Report for online Food Ordering System

Tables:
Admin:
Field_na Min_ Max_ Min_l Max_l Empties_ N Avg_value_or St Optimal_
me value value ength ength or_zeros ull _avg_length d fieldtype
s
Admin_i NULL NULL 0 0 0 0 0.0 0.0 CHAR(0)
d NOT
NULL

Admin_p NULL NULL 0 0 0 0 0.0 N CHAR(0)


assword UL NOT
L NULL

Customer:

customers
Table comments: InnoDB free: 6144 kB

Column Type Null Default Comments

C_id int(11) No     

Cpassword varchar(30) No     

Cname varchar(50) No     

Cdob date No     

Cgender varchar(15) No     

Cemail varchar(50) No     

Ccontact int(11) No     


23 Project Report for online Food Ordering System

Column Type Null Default Comments

Caddress varchar(150) Yes  NULL   

Ccity varchar(30) Yes  NULL   

Cstate varchar(30) Yes  NULL   

Ccountery varchar(30) Yes  NULL   

Corders varchar(50) Yes  NULL   

order_id varchar(30) No     

Restaurant:

restaurant
Table comments: InnoDB free: 6144 kB

Column Type Null Default Comments

R_id int(11) No     

Rpassword varchar(30) No     

Rname varchar(50) No     

Rdoj Date No     

Remail varchar(50) No     

Rcontact int(11) No     

Raddress varchar(150) Yes  NULL   


24 Project Report for online Food Ordering System

Column Type Null Default Comments

Rcity varchar(30) Yes  NULL   

Rstate varchar(30) Yes  NULL   

Rcountery varchar(30) Yes  NULL   

order_id varchar(30) No     

Delivery Boy:

delieveryboy
Table comments: InnoDB free: 6144 kB

Column Type Null Default Comments

DB_id int(11) No     

DBpassword varchar(30) No     

DBname varchar(50) No     

DBdob date No     

DBdoj date No     

DBemail varchar(50) No     

DBcontact int(11) No     

DBaddress varchar(150) Yes  NULL   

DBcity varchar(30) Yes  NULL   


25 Project Report for online Food Ordering System

Column Type Null Default Comments

DBstate varchar(30) Yes  NULL   

DBcountery varchar(30) Yes  NULL   

order_id varchar(30) No     

Orders:

orders
Table comments: InnoDB free: 6144 kB

Column Type Null Default Comments

order_id varchar(30) No     

order_date Date No     

order_productid varchar(50) Yes  NULL   

order_received varchar(5) Yes  NULL   

order_canceled varchar(5) Yes  NULL   

order_DB_id varchar(30) Yes  NULL   

order_Cid varchar(30) Yes  NULL   

order_Rid varchar(30) Yes  NULL   

Products:
26 Project Report for online Food Ordering System

products
Table comments: InnoDB free: 6144 kB

Column Type Null Default Comments

productid varchar(30) No     

productname varchar(50) No     

productRestaurant varchar(50) No     

Platform and Tools:

Frontend:
 Html, CSS, PHP, JavaScript

Backend:
 MySQL
27 Project Report for online Food Ordering System

Software:
 Operating System: Window 7
No particular OS required because PHP is platform
independent.
 Software: WAMP, phpMyAdmin

Hardware:
 Processor: Intel Processor Pentium 4 or equivalent or
new.
 Disk space: 50MB or more.
28 Project Report for online Food Ordering System

HTML :
HTML stands for Hypertext Markup Language, and it is the most widely used language to
write Web Pages.
 Hypertext refers to the way in which Web pages
(HTML documents) are linked together. Thus, the
link available on a webpage is called Hypertext.
 As its name suggests, HTML is a Markup
Language which means you use HTML to simply
"mark-up" a text document with tags that tell a
Web browser how to structure it to display.
Originally, HTML was developed with the intent of defining the structure of documents like
headings, paragraphs, lists, and so forth to facilitate the sharing of scientific information
between researchers.
Now, HTML is being widely used to format web pages with the help of different tags available
in HTML language.

CSS:
Cascading Style Sheets, fondly referred to as CSS, is a simple
design language intended to simplify the process of making
web pages presentable.
CSS handles the look and feel part of a web page. Using CSS,
you can control the color of the text, the style of fonts, the
spacing between paragraphs, how columns are sized and laid
out, what background images or colors are used, layout designs,
variations in display for different devices and screen sizes as
well as a variety of other effects.
29 Project Report for online Food Ordering System

PHP:
PHP started out as a small open source project that evolved as
more and more people found out how useful it was. Rasmus
Lerdorf unleashed the first version of PHP way back in 1994.
 PHP is a recursive acronym for "PHP: Hypertext
Preprocessor".
 PHP is a server side scripting language that is embedded in
HTML. It is used to manage dynamic content, databases,
session tracking, even build entire e-commerce sites.
 It is integrated with a number of popular databases,
including MySQL, PostgreSQL, Oracle, Sybase, Informix,
and Microsoft SQL Server.
 PHP is pleasingly zippy in its execution, especially when
compiled as an Apache module on the Unix side. The
MySQL server, once started, executes even very complex
queries with huge result sets in record-setting time.
JavaScript:
JavaScript is a dynamic computer programming language. It is
lightweight and most commonly used as a part of web pages,
whose implementations allow client-side script to interact with
the user and make dynamic pages. It is an interpreted
programming language with object-oriented capabilities.

INDEX.PHP
30 Project Report for online Food Ordering System

<html>

<head>

<title>Kanpur Food Point</title>

</head>

<?php include('dbcon.php'); ?>

<body>

<div class="logo">

</div>

<nav>

<ul>

<li><a href="#" class="active">Home</a></li>

<li><a href="#about">About Us</a></li>

<li><a href="#event">Service</a></li>

<li><a href="#menu-list">Products</a></li>

<div class="dropdown">

<button class="dropbtn" href="#" >Login

</button>

<div class="dropdown-content">

<a href="#"
onclick="document.getElementById('id01C').style.display='block'"
style="width:auto;">Customer login</a>
31 Project Report for online Food Ordering System

<a href="#"
onclick="document.getElementById('id01A').style.display='block'"
style="width:auto;">Admin login</a>

<a href="#"
onclick="document.getElementById('id01R').style.display='block'"
style="width:auto;">Restaurant login</a>

<a href="#"
onclick="document.getElementById('id01D').style.display='block'"
style="width:auto;">Delivery Boy login</a>

</div>

</div>

<div class="dropdown">

<button class="dropbtn" href="#" >Register

</button>

<div class="dropdown-content">

<a href="#"
onclick="document.getElementById('id02').style.display='block'"
style="width:auto;">Customer Register</a>

<a href="#"
onclick="document.getElementById('id02R').style.display='block'"
style="width:auto;">Restaurant Register</a>

<a href="#"
onclick="document.getElementById('id02D').style.display='block'"
style="width:auto;">Delivery Boy Register</a>

</div>

</div>

</ul>
32 Project Report for online Food Ordering System

</nav>

<div class="slide">

<section class="slider">

<div class="slider-container">

<img src="images/slider1.jpg">

<img src="images/slider2.jpg">

<img src="images/slider3.jpg">

</div>

</section>

</div>

<div id="id01C" class="modal">

<form class="modal-content animate" method="POST"


action="customerlogin.php">

<div class="imgcontainer">

<span onclick="document.getElementById('id01C').style.display='none'"
class="close" title="Close Modal">&times;</span>

<img src="images/avatar1.png" alt="Avatar" class="avatar">

</div>

<div class="cunter">

<label for="uname"><b>Email</b></label>
33 Project Report for online Food Ordering System

<input type="text" placeholder="Enter Username" name="uname" required>

<label for="psw"><b>Password</b></label>

<input type="password" placeholder="Enter Password" name="psw" required>

<button type="submit">Login</button>

<label>

<input type="checkbox" checked="checked" name="remember"> Remember


me

</label>

</div>

<div class="cunter" style="background-color:#f1f1f1">

<button type="button"
onclick="document.getElementById('id01C').style.display='none'"
class="cancelbtn">Cancel</button>

<span class="psw">Forgot <a href="#">password?</a></span>

</div>

</form>

</div>

<script>

// Get the modal

var modal = document.getElementById('id01C');


34 Project Report for online Food Ordering System

// When the user clicks anywhere outside of the modal, close it

window.onclick = function(event) {

if (event.target == modal) {

modal.style.display = "none";

</script>

<div id="id01A" class="modal">

<form class="modal-content animate" method="POST"


action="adminlogin.php">

<div class="imgcontainer">

<span onclick="document.getElementById('id01A').style.display='none'"
class="close" title="Close Modal">&times;</span>

<img src="images/avatar1.png" alt="Avatar" class="avatar">

</div>

<div class="cunter">

<label for="uname"><b>Email</b></label>

<input type="text" placeholder="Enter Username" name="uname" required>

<label for="psw"><b>Password</b></label>
35 Project Report for online Food Ordering System

<input type="password" placeholder="Enter Password" name="psw" required>

<button type="submit">Login</button>

<label>

<input type="checkbox" checked="checked" name="remember"> Remember


me

</label>

</div>

<div class="cunter" style="background-color:#f1f1f1">

<button type="button"
onclick="document.getElementById('id01A').style.display='none'"
class="cancelbtn">Cancel</button>

<span class="psw">Forgot <a href="#">password?</a></span>

</div>

</form>

</div>

<script>

// Get the modal

var modal = document.getElementById('id01A');

// When the user clicks anywhere outside of the modal, close it

window.onclick = function(event) {

if (event.target == modal) {
36 Project Report for online Food Ordering System

modal.style.display = "none";

</script>

<div id="id01R" class="modal">

<form class="modal-content animate" method="POST"


action="restaurantlogin.php">

<div class="imgcontainer">

<span onclick="document.getElementById('id01R').style.display='none'"
class="close" title="Close Modal">&times;</span>

<img src="images/avatar1.png" alt="Avatar" class="avatar">

</div>

<div class="cunter">

<label for="rname"><b>Email</b></label>

<input type="text" placeholder="Enter Username" name="rname" required>

<label for="rpsw"><b>Password</b></label>

<input type="password" placeholder="Enter Password" name="rpsw"


required>

<button type="submit">Login</button>
37 Project Report for online Food Ordering System

<label>

<input type="checkbox" checked="checked" name="remember"> Remember


me

</label>

</div>

<div class="ccunter" style="background-color:#f1f1f1">

<button type="button"
onclick="document.getElementById('id01R').style.display='none'"
class="cancelbtn">Cancel</button>

<span class="psw">Forgot <a href="#">password?</a></span>

</div>

</form>

</div>

<script>

// Get the modal

var modal = document.getElementById('id01R');

// When the user clicks anywhere outside of the modal, close it

window.onclick = function(event) {

if (event.target == modal) {

modal.style.display = "none";

}
38 Project Report for online Food Ordering System

</script>

<div id="id01D" class="modal">

<form class="modal-content animate" method="POST" action="login.php">

<div class="imgcontainer">

<span onclick="document.getElementById('id01D').style.display='none'"
class="close" title="Close Modal">&times;</span>

<img src="images/avatar1.png" alt="Avatar" class="avatar">

</div>

<div class="cunter">

<label for="uname"><b>Email</b></label>

<input type="text" placeholder="Enter Username" name="uname" required>

<label for="psw"><b>Password</b></label>

<input type="password" placeholder="Enter Password" name="psw" required>

<button type="submit">Login</button>

<label>

<input type="checkbox" checked="checked" name="remember"> Remember


me

</label>

</div>
39 Project Report for online Food Ordering System

<div class="cunter" style="background-color:#f1f1f1">

<button type="button"
onclick="document.getElementById('id01D').style.display='none'"
class="cancelbtn">Cancel</button>

<span class="psw">Forgot <a href="#">password?</a></span>

</div>

</form>

</div>

<script>

// Get the modal

var modal = document.getElementById('id01D');

// When the user clicks anywhere outside of the modal, close it

window.onclick = function(event) {

if (event.target == modal) {

modal.style.display = "none";

</script>

<div id="id02" class="modal">

<form class="modal-content animate" method="POST" action="register.php">


40 Project Report for online Food Ordering System

<div class="imgcontainer">

<span onclick="document.getElementById('id02').style.display='none'"
class="close" title="Close Modal">&times;</span>

<img src="images/avatar1.png" alt="Avatar" class="avatar">

</div>

<div class="cunter">

<label for="uname"><b>Email</b></label>

<input type="text" placeholder="Enter Username" name="uname" required>

<label for="psw"><b>Password</b></label>

<input type="password" placeholder="Enter Password" name="psw" required>

<button type="submit">Register</button>

</div>

</form>

</div>

<script>

// Get the modal

var modal = document.getElementById('id02');

// When the user clicks anywhere outside of the modal, close it


41 Project Report for online Food Ordering System

window.onclick = function(event) {

if (event.target == modal) {

modal.style.display = "none";

</script>

<div id="id02R" class="modal">

<form class="modal-content animate" method="POST" id="upload_image"


enctype="multipart/form-data">

<div class="imgcontainer">

<span onclick="document.getElementById('id02R').style.display='none'"
class="close" title="Close Modal">&times;</span>

<img src="images/avatar1.png" alt="Avatar" class="avatar">

</div>

<div class="cunter">

<input type="text" placeholder="Enter Restaurant Name" name="rname"


value="" required>

<input type="text" placeholder="Enter Email " name="remail" value=""


required>
42 Project Report for online Food Ordering System

<input type= placeholder="" name="rdoj" value="<?php echo date('Y-m-d'); ?


>" required>

<textarea rows="2" cols="30" placeholder="Enter Your Address"


name="Raddress"></textarea>

<input type="number" placeholder="Contact" name="rcon" required>

<input type="password" placeholder="********" name="psw" required>

<label class="control-label" for="input01">Image:</label>

<div class="controls">

<input type="file" name="image"


class="font" required>

</div>

</div>

</center>

<div class="control-group">

<div class="controls">

<button type="submit" name="submit"


class="btn btn-success">Register </button>

</div>

</div>

</div>
43 Project Report for online Food Ordering System

</form>

<?php

if (isset($_POST['submit'])) {

$image = addslashes(file_get_contents($_FILES['image']
['tmp_name']));

$image_name = addslashes($_FILES['image']['name']);

$image_size = getimagesize($_FILES['image']['tmp_name']);

move_uploaded_file($_FILES["image"]["tmp_name"], "images/" .
$_FILES["image"]["name"]);

$location = "images/" . $_FILES["image"]["name"];

$rname = $_POST['rname'];

$remail = $_POST['remail'];

$doj = $_POST['rdoj'];

$raddress = $_POST['Raddress'];

$rcontact = $_POST['rcon'];

$password = $_POST['psw'];

$rq=("insert into restaurant


(Rname,Rpassword,Rdoj,Remail,Rcontact,Raddress,Rimage)
values('$rname','$password','$doj','$remail','$rcontact','$raddress','$location') ");

$conn->query($rq);

header('location:restauranthome.php');
44 Project Report for online Food Ordering System

?>

<?php

?>

</div>

<script>

// Get the modal

var modal = document.getElementById('id02R');

// When the user clicks anywhere outside of the modal, close it

window.onclick = function(event) {

if (event.target == modal) {

modal.style.display = "none";

</script>

<div id="id02D" class="modal">

<form class="modal-content animate" method="POST" action="register.php">

<div class="imgcontainer">
45 Project Report for online Food Ordering System

<span onclick="document.getElementById('id02D').style.display='none'"
class="close" title="Close Modal">&times;</span>

<img src="images/avatar1.png" alt="Avatar" class="avatar">

</div>

<div class="cunter">

<label for="uname"><b>Email</b></label>

<input type="text" placeholder="Enter Username" name="uname" required>

<label for="psw"><b>Password</b></label>

<input type="password" placeholder="Enter Password" name="psw" required>

<button type="submit">Register</button>

</div>

</form>

</div>

<script>

// Get the modal

var modal = document.getElementById('id02D');

// When the user clicks anywhere outside of the modal, close it

window.onclick = function(event) {
46 Project Report for online Food Ordering System

if (event.target == modal) {

modal.style.display = "none";

</script>

</body>

</html>

<?php include('pageindex.php'); ?>


47 Project Report for online Food Ordering System

CUSTOMERHOME.PHP
<head>

</head>

<body>

<?php include("product.php");?>

<div class="sidenav">

<a href="customerprofile.php">My Profile</a>

<a href="edit_profile.php">Edit Profile</a>

<a href="#clients">Clients</a>

<a href="#contact">Contact</a>

</div><div class="main">

<?php include("profileproduct.php");?>

</div>

</body>

</html>

PROFILEPRODUCT.PHP
48 Project Report for online Food Ordering System

<?php include('ressession.php'); ?>

<div >

<div class="col-md-5" >

<form id="upload_image" class="form-horizontal"


method="POST" enctype="multipart/form-data">

<center> <div >

<input type="hidden" name="R_id" value="<?php echo


$id; ?>">

<input type="hidden" name="Rname" value="<?php


echo $username; ?>">

</form>

<body>

<div id="masthead">

<div class="container">

</div><!-- /cont -->

<div class="container">

<div class="row">

<div class="col-md-12">

<div class="top-spacer"> </div>

</div>

</div>

</div><!-- /cont -->


49 Project Report for online Food Ordering System

</div>

<div class="container">

<div class="row">

<div class="col-md-12">

<div class="panel">

<div class="panel-body">

<div class="row" style="background-color:#8bc34a;">

<br>

<?php

$query = $conn->query("select * from restaurant order by R_id DESC ");

while($row = $query->fetch()){

$id = $row['R_id'];

$Rname = $row['Rname'];

$Rimage = $row['Rimage'];

$Raddress = $row['Raddress'];

?>

<div class="col-md-2 col-sm-3 text-center" >

<img src="<?php echo $Rimage; ?>" style="width:200px;height:200px; "


class="img-circle"></a>

</div>
50 Project Report for online Food Ordering System

<div class="col-md-10 col-sm-9">

<div class="alert"><?php echo $Rname; ?></div>

<div class="row">

<div class="col-xs-9">

<small style="font-family:courier,'new courier';" class="text-


muted">Address:<a href="#" class="text-muted"><?php echo $Raddress; ?
></a></small>

</h4></div>

<form method="POST" action="lookproduct.php">

<input type="hidden" name="R_id" value="<?php echo


$id; ?>">

<input type="hidden" name="Rname" value="<?php


echo $username; ?>">

<button type="submit" name="submit" ><i class="icon-trash"></i> Take


a Look </button>

</form></div>

<br><br>

</div>

<?php } ?>

</div>

<hr>

</div>

</div>
51 Project Report for online Food Ordering System

</div><!--/col-12-->

</div>

</div>

</body>

</html>

LOOKPRODUCT.PHP
52 Project Report for online Food Ordering System

<?php include('allhome.php'); ?>

<div class="main">

<?php include('dbcon.php'); ?>

<div >

<div class="col-md-5" >

<body>

<div class="">

<div class="row">

<div class="col-md-12">

<div class="panel">

<div class="panel-body">

<!--/stories-->

<div class="row">

<br>

<?php

$rid = $_POST['R_id'];

$rname = $_POST['Rname'];

$query = $conn->query("select * from products where R_id='$rid' order by productid DESC ");

while($row = $query->fetch()){

$productid = $row['productid'];
53 Project Report for online Food Ordering System

$productname = $row['productname'];

$proimage = $row['proimage'];

$proprice = $row['proprice'];

$pid = $row['productid'];

?>

<div class="col-md-2 col-sm-3 text-center">

<img src="<?php echo $proimage; ?>" style="width:100px;height:100px" class="img-circle"></a>

</div>

<div class="col-md-10 col-sm-9">

<div class="alert">Rs. <?php echo $row['proprice']; ?></div>

<div class="row">

<div class="col-xs-9">

<small style="font-family:courier,'new courier';" class="text-muted">Product Name:<a


href="#" class="text-muted"><?php echo $productname; ?></a></small>

</h4></div>

<form method="POST" action="placeorder.php">

Quantity<select name="quantity">

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

<option value="6">6</option>

</select>

<input type="hidden" name="proprice" value="<?php echo


$row['proprice']; ?>">
54 Project Report for online Food Ordering System

<input type="hidden" name="productid" value="<?php echo $pid; ?>">

<input type="hidden" name="R_id" value="<?php echo $rid; ?>">

<input type="hidden" name="Rname" value="<?php echo $rname; ?>">

<button type="submit" name="submit" ><i class="icon-trash"></i> Add To Cart </button>

</form>

</div>

<br><br>

</div>

<?php } ?>

</div>

<hr>

</div>

</div>

</div><!--/col-12-->

</div>

</div>

</div>

</body>

</html>

PLACEORDER.PHP
55 Project Report for online Food Ordering System

<?php include('allhome.php'); ?>

<div class="main">

<?php include('prosession.php'); ?>

<body>

<div id="masthead">

<div class="container" style="width:500px;">

<div class="row">

<div class="">

<?php

$quant = $_POST['quantity'];

$productid = $_POST['productid'];

$query = $conn->query("select * from products where productid = '$productid' ");

$row = $query->fetch();

$proid = $row['productid'];

$proimage = $row['proimage'];

$proprice = $row['proprice'];

$productname = $row['productname'];

$rname = $row['productRestaurant'];

$id = $row['R_id'];

$bill = $quant*$proprice;

?>

<hr>

<center><img class="pp" src="<?php echo $proimage; ?>" height="140"


width="160"></center>
56 Project Report for online Food Ordering System

<center><h1 style="color:tomato; padding-top:5px;" > <?php echo $productname; ?>


</h1></center>

</div>

<div class="">

<?php

$query = $conn->query("select * from customers where C_id = '$session_id'");

$row = $query->fetch();

$Cid = $row['C_id'];

?>

<hr>

<form method="POST" action="orderdone.php">

<input type="hidden" name="rid" value="<?php echo $id; ?>">

<input type="hidden" name="productid" value="<?php echo $proid; ?>">

<hr>

<input type="hidden" name="C_id" value="<?php echo $Cid; ?>">

<hr>

<input type="hidden" name="fullname" value="<?php echo $row['Cname']; ?>">

Name: <?php echo $row['Cname']; ?>

<hr>

Restaurant:<?php echo $rname; ?>

<input name="dob" type="hidden" value="<?php echo $rname; ?>">

<hr>

Address:<?php echo $row['Caddress']; ?>

<input name="Caddress" type="hidden" value="<?php echo $row['Caddress']; ?>">

<hr>
57 Project Report for online Food Ordering System

Quantity:<?php echo $quant; ?>

<input type="hidden" name="quantity" value="<?php echo $quant; ?>">

<hr>

Mobile:<?php echo $row['Ccontact']; ?>

<input name="mobile" type="hidden" value="<?php echo $row['Ccontact']; ?>">

<hr>

Total Bill:<?php echo $bill; ?>

<input type="hidden" name="orderbill" value="<?php echo $bill; ?>">

<br>

<center>

<button type="submit" class="btn edit"> Done </button>

</center>

<br>

<form>

</div>

</div>

</div><!-- /cont -->

<div class="container">

<div class="row">

<div class="col-md-12">

<div class="top-spacer"> </div>

</div>

</div>

</div><!-- /cont -->


58 Project Report for online Food Ordering System

</div>

</div>

</body>

</html>

CUSTOMERPROFILE.PHP
59 Project Report for online Food Ordering System

</head>

<body>

<div class="navbar">

<a href="logout.php" >

<i class="nav-icon fa fa-sign-out"></i>

<p>

Logout

</p>

</a>

</div>

<div class="sidenav">

<a href="profile.php">My Profile</a>

<a href="edit_profile.php">Edit Profile</a>

<a href="#clients">Clients</a>

<a href="#contact">Contact</a>

</div>

<div class="main">

<?php include("profile.php");?>

</div>
60 Project Report for online Food Ordering System

</body>

</html>

PROFILE.PHP
<?php include("session.php");?>
61 Project Report for online Food Ordering System

<div class="row" style="margin-left:-145px;" >

<div class="col-md-2">

<hr>

<center><img class="pp" src="<?php echo $image; ?>" height="140"


width="160"></center>

<hr>

<a class="btn btn-success" href="changepic.php">Change Profile


Picture</a>

</div>

<div class="col-md-10">

<hr>

<div class="pull-right"><a href="edit_profile.php" class="btn


btn-info"><i class="icon-pencil"></i> Edit</a></div>

<pre class="f">Personal Info

</pre>

<?php

$query = $conn->query("select * from customers where C_id =


'$session_id'");

$row = $query->fetch();

$id = $row['C_id'];

?>

<hr>
62 Project Report for online Food Ordering System

<pre>Name:<?php echo $row['Cname'] ?><span


class="margin-p"> </span>Gender:<?php echo $row['Cgender']; ?></pre>

<hr>

<pre>Address:<?php echo $row['Caddress']; ?></pre>

<hr>

<pre>Gender:<?php echo $row['Cgender']; ?></pre>

<hr>

<pre>Birthdate:<?php echo $row['Cdob']; ?></pre>

<hr>

<pre>Contact No:<?php echo $row['Ccontact']; ?></pre>

<hr>

<pre>City:<?php echo $row['Ccity']; ?></pre>

<hr>

<pre>State:<?php echo $row['Cstate']; ?></pre>

<hr>

<pre>Countery:<?php echo $row['Ccountery']; ?></pre>

</div>

</div>

CHANGEPIC.PHP
<?php include("session.php");?>
63 Project Report for online Food Ordering System

<div class="row">

<div class="col-md-2">

<hr>

<center><img class="pp" src="<?php echo $image; ?>" height="140"


width="160"></center>

<hr>

<a class="btn btn-success" href="#">Change Profile Picture</a>

</div>

<div class="col-md-5">

<hr>

<p>Personal Info</p>

<?php

$query = $conn->query("select * from customers where C_id =


'$session_id'");

$row = $query->fetch();

$id = $row['C_id'];

?>

<hr>

<p>Name:<?php echo $row['Cname']; ?><span class="margin-


p"> </span>Gender:<?php echo $row['Cgender']; ?></p>

<hr>

<p>Address:<?php echo $row['Caddress']; ?></p>

<hr>
64 Project Report for online Food Ordering System

</div>

<div class="col-md-5">

<form id="upload_image" class="form-horizontal"


method="POST" enctype="multipart/form-data">

<div class="control-group">

<label class="control-label"
for="input01">Image:</label>

<div class="controls">

<input type="file" name="image"


class="font" required>

</div>

</div>

<div class="control-group">

<div class="controls">

<button type="submit" name="submit"


class="btn btn-success">Upload</button>

</div>

</div>

</form>

<?php

if (isset($_POST['submit'])) {

$image = addslashes(file_get_contents($_FILES['image']
['tmp_name']));
65 Project Report for online Food Ordering System

$image_name = addslashes($_FILES['image']['name']);

$image_size = getimagesize($_FILES['image']['tmp_name']);

move_uploaded_file($_FILES["image"]["tmp_name"], "images/" .
$_FILES["image"]["name"]);

$location = "images/" . $_FILES["image"]["name"];

$conn->query("update customers set image = '$location' where C_id


= '$session_id' ");

?>

<script>

window.location = 'customerhome.php';

</script>

<?php

?> </div> </div>

EDITP_ROFILE.PHP

<?php include('session.php'); ?>

<body>
66 Project Report for online Food Ordering System

<div id="masthead">

<div class="container">

<div class="row">

<div class="col-md-2">

<hr>

<center><img class="pp" src="<?php echo $image; ?>" height="140"


width="160"></center>

<hr>

<button class="btn btn-success">Change Profile Picture</button>

</div>

<div class="col-md-10">

<?php

$query = $conn->query("select * from customers where C_id =


'$session_id'");

$row = $query->fetch();

$id = $row['C_id'];

?>

<hr>

<form method="POST" action="save_edit.php">

<input type="number" name="C_id" value="<?php echo $id; ?>">

Email:<input type="text" name="username" value="<?php echo


$row['Cemail']; ?>">

<hr>
67 Project Report for online Food Ordering System

Name:<input type="text" name="fullname" value="<?php echo


$row['Cname']; ?>">

<hr>

Gender:

<select name="gender">

<option><?php echo $row['Cgender']; ?></option>

<option>Male</option>

<option>Female</option>

</select>

<hr>

Birthdate:<input name="birthdate" type="date" value="<?php echo


$row['Cdob']; ?>">

<hr>

Address:<input name="address" type="text" value="<?php echo


$row['Caddress']; ?>">

<hr>

City:<input name="status" type="text" value="<?php echo $row['Ccity']; ?


>">

<hr>

Mobile:<input name="mobile" type="number" value="<?php echo


$row['Ccontact']; ?>">

<hr>

State:<input name="work" type="text" value="<?php echo $row['Cstate']; ?


>">
68 Project Report for online Food Ordering System

<hr>

Country:<input name="religion" type="text" value="<?php echo


$row['Ccountery']; ?>">

<hr>

<br>

<center>

<button type="submit" class="btn edit">Save</button>

</center>

<br>

<form>

</div>

</div>

</div><!-- /cont -->

<div class="container">

<div class="row">

<div class="col-md-12">

<div class="top-spacer"> </div>

</div>

</div>

</div><!-- /cont -->

</div>
69 Project Report for online Food Ordering System

<?php

if (isset($_POST['submit'])) {

$image = addslashes(file_get_contents($_FILES['image']
['tmp_name']));

$image_name = addslashes($_FILES['image']['name']);

$image_size = getimagesize($_FILES['image']['tmp_name']);

move_uploaded_file($_FILES["image"]["tmp_name"], "images/" .
$_FILES["image"]["name"]);

$location = "images/" . $_FILES["image"]["name"];

$conn->query("update customers set image = '$location' where C_id


= '$session_id' ");

?>

<script>

window.location = 'customerhome.php';

</script>

<?php } ? </body> </html>

RESTAURANTHOME.PHP
<head>

<link rel="stylesheet" href="style.css">

<link rel="stylesheet" href="css/bootstrap.css">

<link rel="stylesheet" href="css/bootstrap.min.css">


70 Project Report for online Food Ordering System

<link rel="stylesheet" href="css/bootstrap-grid.css">

<link rel="stylesheet" href="css/bootstrap-grid.min.css">

<link rel="stylesheet" href="css/bootstrap-reboot.css">

<link rel="stylesheet" href="css/bootstrap-reboot.min.css">

<link rel="stylesheet" href="css/fontawesome.css">

<style>

body {

font-family: "Lato", sans-serif;

.sidenav {

height: 100%;

width: 200px;

position: fixed;

z-index: 1;

top: 0;

left: 0;

background-color: #111;

overflow-x: hidden;

padding-top: 20px;

.sidenav a {
71 Project Report for online Food Ordering System

padding: 6px 8px 6px 16px;

text-decoration: none;

font-size: 25px;

color: #818181;

display: block;

.sidenav a:hover {

color: #f1f1f1;

.main {

margin-left: 160px; /* Same as the width of the sidenav */

font-size: 28px; /* Increased text to enable scrolling */

padding: 0px 10px;

@media screen and (max-height: 450px) {

.sidenav {padding-top: 15px;}

.sidenav a {font-size: 18px;}

</style>

</head>
72 Project Report for online Food Ordering System

<body>

<?php include("reshomeproduct.php");?>

<div class="sidenav">

<a href="customerprofile.php">My Profile</a>

<a href="edit_profile.php">Edit Profile</a>

<a href="#clients">Clients</a>

<a href="#contact">Contact</a>

</div>

</body>

</html>

RESPRODUCT.PHP
<?php include('ressession.php'); ?>

<div >

<div class="col-md-5" >


73 Project Report for online Food Ordering System

<form id="upload_image" class="form-horizontal" method="POST"


enctype="multipart/form-data">

<center> <div >

<input type="hidden" name="R_id" value="<?php echo $id; ?>">

<input type="hidden" name="Rname" value="<?php echo


$username; ?>">

product Name

<input type="text" name="productname" class="font"


required></br>

Price

<input type="number" name="proprice" class="font" required>

<label class="control-label" for="input01">Image:</label>

<div class="controls">

<input type="file" name="image" class="font"


required>

</div>

</div>

</center>

<div class="control-group">

<div class="controls">

<button type="submit" name="submit" class="btn


btn-success">ADD ITEM </button>

</div>

</div>

</form>

<?php
74 Project Report for online Food Ordering System

if (isset($_POST['submit'])) {

$image = addslashes(file_get_contents($_FILES['image']['tmp_name']));

$image_name = addslashes($_FILES['image']['name']);

$image_size = getimagesize($_FILES['image']['tmp_name']);

move_uploaded_file($_FILES["image"]["tmp_name"], "images/" .
$_FILES["image"]["name"]);

$location = "images/" . $_FILES["image"]["name"];

$rid = $_POST['R_id'];

$rname = $_POST['Rname'];

$productname = $_POST['productname'];

$proprice = $_POST['proprice'];

$rq=("insert into products


(productname,proimage,proprice,productRestaurant,R_id)
values('$productname','$location','$proprice','$rname','$rid') ");

$conn->query($rq);

header('location:restauranthome.php');

?>

<?php

?>

<body>

<div id="masthead">
75 Project Report for online Food Ordering System

<div class="container">

</div><!-- /cont -->

<div class="container">

<div class="row">

<div class="col-md-12">

<div class="top-spacer"> </div>

</div>

</div>

</div><!-- /cont -->

</div>

<div class="container">

<div class="row">

<div class="col-md-12">

<div class="panel">

<div class="panel-body">

<!--/stories-->

<div class="row">

<br>

<?php

$query = $conn->query("select * from products where R_id='$session_id' order by


productid DESC ");

while($row = $query->fetch()){

$productname = $row['productname'];

$proimage = $row['proimage'];
76 Project Report for online Food Ordering System

$proprice = $row['proprice'];

$id = $row['productid'];

?>

<div class="col-md-2 col-sm-3 text-center">

<img src="<?php echo $proimage; ?>" style="width:100px;height:100px" class="img-


circle"></a>

</div>

<div class="col-md-10 col-sm-9">

<div class="alert">Rs. <?php echo $row['proprice']; ?></div>

<div class="row">

<div class="col-xs-9">

<small style="font-family:courier,'new courier';" class="text-muted">Product


Name:<a href="#" class="text-muted"><?php echo $productname; ?></a></small>

</h4></div>

<div class="col-xs-3"><a href="delete_product.php<?php echo '?id='.$id; ?>"


class="btn btn-danger"><i class="icon-trash"></i> Delete</a></div>

</div>

<br><br>

</div>

<?php } ?> </div> <hr> </div> </div> </div> <!--/col-12--> </div></div> </body></html>

CUSTOMERLOGIN.PHP
<?php
include('dbcon.php');
$username = $_POST['uname'];
$password = $_POST['psw'];
$query = $conn->query("select * from customers where Cemail = '$username' and Cpassword =
'$password'");
$count = $query->rowcount();
77 Project Report for online Food Ordering System

$row = $query->fetch();
if ($count > 0){
session_start();
$_SESSION['id'] = $row['C_id'];
header('location:customerhome.php');
}else{
header('location:index.php');
}
?>
REGISTER.PHP
<?php
include('dbcon.php');
$username = $_POST['uname'];
$password = $_POST['psw'];
$query = $conn->query("select * from customers where Cemail = '$username' OR Cpassword =
'$password'");
$count = $query->rowcount();
$row = $query->fetch();
if ($count > 0){
echo "user already exist";
header('location:index.php');
}
else{
$qr="insert into customers (Cemail,Cpassword,image) values
('$username','$password','images/No_Photo_Available.jpg')";
$conn->query($qr);
}
?>
<script>
alert("Sign UP Success Please Login Your Account.");
window.location = 'index.php';
</script>

RESTAURANRLOGIN.PHP
<?php
include('dbcon.php');
78 Project Report for online Food Ordering System

$username = $_POST['rname'];
$password = $_POST['rpsw'];

$query = $conn->query("select * from restaurant where Remail = '$username' and Rpassword =


'$password'");
$count = $query->rowcount();
$row = $query->fetch();
if ($count > 0){
session_start();
$_SESSION['id'] = $row['R_id'];
header('location:restauranthome.php');
}else{
header('location:index.php');
}

?>

RESTAURANTREGISTER
<?php
include('dbcon.php');
$username = $_POST['remail'];
$password = $_POST['psw'];
$name = $_POST['rname'];
$jdate = $_POST['rdoj'];
$rcontact = $_POST['rcon'];
$raddress = $_POST['Raddress'];

if (isset($_POST['submit'])) {

$image = addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']['name']);
$image_size = getimagesize($_FILES['image']['tmp_name']);
79 Project Report for online Food Ordering System

move_uploaded_file($_FILES["image"]["tmp_name"], "images/" . $_FILES["image"]


["name"]);
$location = "images/" . $_FILES["image"]["name"];
}

$query = $conn->query("select * from restaurant where Remail = '$username' OR Rpassword =


'$password' ");
$count = $query->rowcount();
$row = $query->fetch();
if ($count > 0){
echo "user already exist";
header('location:index.php');
}
else{
$qr="insert into restaurant (Remail,Rpassword,Rname,Rdoj,Rcontact,Raddress,Rimage) values
('$username','$password','$name','$jdate','$rcontact','$raddress','$location')";
echo "$qr";
$conn->query($qr);

}
?>

SAVE_EDIT.PHP
<?php
$C_id = $_POST['C_id'];
$username = $_POST['username'];
$fullname = $_POST['fullname'];
$gender = $_POST['gender'];
$address = $_POST['address'];
80 Project Report for online Food Ordering System

$birthdate = $_POST['birthdate'];
$mobile = $_POST['mobile'];
$status = $_POST['status'];
$work = $_POST['work'];
$religion = $_POST['religion'];

$link = mysqli_connect("localhost", "root", "elite", "onlinefood");

if($link === false){


die("ERROR: Could not connect. "
. mysqli_connect_error());
}

$sql = "UPDATE customers SET Cname='$fullname', Cgender='$gender', Caddress='$address',


Cdob='$birthdate', Ccontact='$mobile', Ccity='$status', Cstate='$work', Ccountery='$religion' WHERE
C_id='$C_id'";
if(mysqli_query($link, $sql)){
echo "Record was updated successfully.";
header('location:customerhome.php');
} else {
echo "ERROR: Could not able to execute $sql. "
. mysqli_error($link);
}
mysqli_close($link);
?>

SESSION.PHP
<?php
include("dbcon.php");
session_start();
if (!isset($_SESSION['id'])){
header('location:index.php');
}
81 Project Report for online Food Ordering System

$session_id = $_SESSION['id'];
$session_query = $conn->query("select * from customers where C_id = '$session_id'");
$user_row = $session_query->fetch();
$username = $user_row['Cname'];
$image = $user_row['image'];
?>

PROSESSION.PHP
<?php

include("dbcon.php");

session_start();

if (!isset($_SESSION['id'])){

header('location:index.php');

$session_id = $_SESSION['id'];

$session_query = $conn->query("select * from products where productid = '1'");

$user_row = $session_query->fetch();

$id = $user_row['productid'];

$username = $user_row['productname'];

$image = $user_row['proimage'];

?>

RESSESSION.PHP
<?php

include("dbcon.php");

session_start();

if (!isset($_SESSION['id'])){

header('location:index.php');
82 Project Report for online Food Ordering System

$session_id = $_SESSION['id'];

$session_query = $conn->query("select * from restaurant where R_id = '$session_id'");

$user_row = $session_query->fetch();

$id = $user_row['R_id'];

$username = $user_row['Rname'];

$image = $user_row['Rimage'];

?>

PLACEORDER.PHP
<?php include('allhome.php'); ?>

<div class="main">

<?php include('prosession.php'); ?>


83 Project Report for online Food Ordering System

<body>

<div id="masthead">

<div class="container" style="width:500px;">

<div class="row">

<div class="">

<?php

$quant = $_POST['quantity'];

$productid = $_POST['productid'];

$query = $conn->query("select * from products where productid = '$productid' ");

$row = $query->fetch();

$proid = $row['productid'];

$proimage = $row['proimage'];

$proprice = $row['proprice'];

$productname = $row['productname'];

$rname = $row['productRestaurant'];

$id = $row['R_id'];

$bill = $quant*$proprice;

?>

<hr>

<center><img class="pp" src="<?php echo $proimage; ?>" height="140"


width="160"></center>

<center><h1 style="color:tomato; padding-top:5px;" > <?php echo


$productname; ?> </h1></center>

</div>
84 Project Report for online Food Ordering System

<div class="">

<?php

$query = $conn->query("select * from customers where C_id = '$session_id'");

$row = $query->fetch();

$Cid = $row['C_id'];

?>

<hr>

<form method="POST" action="orderdone.php">

<input type="hidden" name="rid" value="<?php echo $id; ?>">

<input type="hidden" name="productid" value="<?php echo $proid; ?>">

<hr>

<input type="hidden" name="C_id" value="<?php echo $Cid; ?>">

<hr>

<input type="hidden" name="fullname" value="<?php echo $row['Cname']; ?>">

Name: <?php echo $row['Cname']; ?>

<hr>

Restaurant:<?php echo $rname; ?>

<input name="dob" type="hidden" value="<?php echo $rname; ?>">

<hr>

Address:<?php echo $row['Caddress']; ?>

<input name="Caddress" type="hidden" value="<?php echo $row['Caddress']; ?>">

<hr>

Quantity:<?php echo $quant; ?>


85 Project Report for online Food Ordering System

<input type="hidden" name="quantity" value="<?php echo $quant; ?>">

<hr>

Mobile:<?php echo $row['Ccontact']; ?>

<input name="mobile" type="hidden" value="<?php echo $row['Ccontact']; ?>">

<hr>

Total Bill:<?php echo $bill; ?>

<input type="hidden" name="orderbill" value="<?php echo $bill; ?>">

<br>

<center>

<button type="submit" class="btn edit"> Done </button>

</center>

<br>

<form>

</div>

</div>

</div><!-- /cont -->

<div class="container">

<div class="row">

<div class="col-md-12">

<div class="top-spacer"> </div>

</div>

</div>

</div><!-- /cont -->


86 Project Report for online Food Ordering System

</div> </div>

</body>

</html>

ORDERDONE.PHP
<?php

$quantity = $_POST['quantity'];

$orderbill = $_POST['orderbill'];
87 Project Report for online Food Ordering System

$R_id= $_POST['rid'];

$C_id = $_POST['C_id'];

$productid = $_POST['productid'];

include('dbcon.php');

$qr="insert into orders (order_Cid,order_productid,order_Rid,orderbill,orderquantity) values


('$C_id','$productid','$R_id','$orderbill','$quantity')";

$conn->query($qr);

header('location:ordersucces.php');

?>

ORDERSUCCESS.PHP
<?php

include ('session.php');

$query = $conn->query("select * from orders order by order_id DESC ");


88 Project Report for online Food Ordering System

$row = $query->fetch();

$orderid = $row['order_id'];

?>

Your Order ID is : <?php echo $row['order_id']; ?>

</br>

You will get your order in 30 Minuts. Thankyou......!

<a href="customerhome.php">Go Back Home Page</a>

DELETPRODUT.PHP
<?php

include('dbcon.php');

$get_id = $_GET['id'];

$conn->query("delete from products where productid='$get_id'");

header('location:restauranthome.php');

?>

LOGOUT.PHP
<?php

session_unset();

session_destroy();{
89 Project Report for online Food Ordering System

$a=1;

if($a==1){

header('location:index.php');

else{

header('location:customerhome.php');

session_start();

?>

DBCON.PHP
<?php $conn = new PDO('mysql:host=localhost;dbname=onlinefood;', 'root', 'elite'); ?>

PAGEINDEX.PHP
<html>

<head>

<link rel="stylesheet" type="text/css" href="Icss/font-awesome.min.css">


90 Project Report for online Food Ordering System

<link rel="stylesheet" type="text/css" href="Icss/bootstrap.min.css">

<link rel="stylesheet" type="text/css" href="Icss/style.css">

</head>

<body>

<section id="about" class="section-padding">

<div class="container">

<div class="row">

<div class="col-md-12 text-center marb-35">

<h1 class="header-h">About us</h1>

<h2 class="header-h">Delicious Journey</h2>

<p class="header-p">A Few Words About Food Delivery

<br>Food Delviery, one of today most renowned food

<br>delviery services, as a quick

<br>and secure method to order something for anyone with

<br>any taste - from burger lovers to fans of sushi and seafood.</p>

</div>

<div class="col-md-1"></div>

<div class="col-md-10">

<div class="col-md-6 col-sm-6">

<div class="about-info">

<h2 class="heading">Idea</h2>

<p>It all started from a single idea. We wanted to create a place that would offer its
customers easy ordering and delivery of their favorite dishes.</p>

</div>

</div>
91 Project Report for online Food Ordering System

<div class="col-md-6 col-sm-6">

<img src="images/res01.jpg" alt="" class="img-responsive">

</div>

</div>

<div class="col-md-1"></div>

</div>

</div>

</section>

<!--/about-->

<!-- event -->

<section id="event">

<div class="bg-color" class="section-padding">

<div class="container">

<div class="row">

<div class="col-xs-12 text-center" style="padding:60px;">

<h1 class="header-h">Main Services</h1>

<p class="header-p">Decorations 100% complete here</p>

</div>

<div class="col-md-12" style="padding-bottom:60px;">

<div class="item active left">

<div class="col-md-6 col-sm-6 left-images">

<img src="images/res02.jpg" class="img-responsive">

</div>

<div class="col-md-6 col-sm-6 details-text">


92 Project Report for online Food Ordering System

<div class="content-holder">

<h2>Late morning brunch</h2>

<p>The work is always in a full swing in our kitchen! Everyone here is on fire when it
comes to cooking.</p>

<address>

<h2>Online Food Order</h2>

<p>It is pretty simple to make a Online Food order in one of the best restaurants of
Italian cuisine.</p>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</section>

<!--/ event -->

<!-- menu -->

<section id="menu-list" class="section-padding">

<div class="container">

<div class="row">

<div class="col-md-12 text-center marb-35">

<h1 class="header-h">Menu List</h1>


93 Project Report for online Food Ordering System

<p class="header-p">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
nonummy

<br>nibh euismod tincidunt ut laoreet dolore magna aliquam. </p>

</div>

<div class="col-md-12 text-center" id="menu-flters">

<ul>

<li><a class="filter active" data-filter=".menu-restaurant">Show All</a></li>

<li><a class="filter" data-filter=".breakfast">Breakfast</a></li>

<li><a class="filter" data-filter=".lunch">Lunch</a></li>

<li><a class="filter" data-filter=".dinner">Dinner</a></li>

</ul>

</div>

<div id="menu-wrapper">

<div class="breakfast menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>
94 Project Report for online Food Ordering System

<div class="breakfast menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>

<div class="breakfast menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>

<div class="breakfast menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>
95 Project Report for online Food Ordering System

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>

<div class="lunch menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>

<div class="lunch menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>
96 Project Report for online Food Ordering System

<div class="lunch menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>

<div class="lunch menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>

<div class="lunch menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>
97 Project Report for online Food Ordering System

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>

<div class="dinner menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>

<div class="dinner menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>
98 Project Report for online Food Ordering System

<div class="dinner menu-restaurant">

<span class="clearfix">

<a class="menu-title" href="#" data-meal-img="assets/images/restaurant/rib.jpg">Food


Item Name</a>

<span style="left: 166px; right: 44px;" class="menu-line"></span>

<span class="menu-price">$20.99</span>

</span>

<span class="menu-subtitle">Neque porro quisquam est qui dolorem</span>

</div>

</div>

</div>

</div>

</section>

<footer class="footer text-center">

<div class="footer-top">

<div class="row">

<div class="col-md-offset-3 col-md-6 text-center">

<div class="widget">

<h4 class="widget-title">Delicious</h4>

<address>INDIA<br>

<div class="credits">

<!--

All the links in the footer should remain intact.


99 Project Report for online Food Ordering System

You can delete the links only if you purchased the pro version.

Licensing information: https://bootstrapmade.com/license/

Purchase the pro version with working PHP/AJAX contact form:


https://bootstrapmade.com/buy/?theme=Delicious

-->

Developed by <a href="">Rajesh Gupta</a>

</div>

</div>

</div>

</div>

</div>

</footer>

</body>

</html>

Future Scope :
There are many enthusiastic business people who
want to invest their money somewhere but do not
know which trade is the best to put their money that
would give them maximum profits. The food
industry over the years has grown remarkably and
has been growing at an astounding speed. Today
100 Project Report for online Food Ordering System

every offline industry is following the online system,


it is assumed that online food delivery would
increase by 30% yearly from 2017 to 2022 across the
world.

Bibliography :
The first online food order was a pizza from Pizza Hut in 1994.

This is a picture from a 2018 Pizza Hut pizza box, which describes the first online
food sale.
By the late 2000s, major pizza chains had created their own mobile applications
and started doing 20-30 percent of their business online. With increased
smartphone penetration, and the growth of both Uber and the sharing economy,
101 Project Report for online Food Ordering System

food delivery startups started to receive more attention. In 2010, Snapfinger, who
is a multi-restaurant ordering website, had a growth in their mobile food orders by
17 percent in one year.
Instacart was founded in 2012. In 2013, Seamless and Grubhub merged. Uber
Eats launched in Los Angeles, California in 2014. By 2015, online ordering began
overtaking phone ordering.
In 2015, China's online food ordering and delivery market grew from 0.15
billion Yuan to 44.25 billion Yuan.
As of September 2016, online delivery accounted for about 3 percent of the 61
billion U.S. restaurant transactions.
References :
1. "A Secular Shift To Online Food Ordering". TechCrunch. 2015-05-07.
2. Associated Press. "Papa John's hits online ordering milestone." 5 May 2008.
3. Soder, Chuck. "Online Ordering System Will Get Bigger Slice of Case Students'
Pie." Crane's Cleveland Business News. 14 May 2007.
4. The retailer, EY’s publication in consumer products and retail sector (Report).
EY. January–March 2015.
5. "Why Pizza Giants Want Customers to Click, Not Call, for Delivery".
Adage.com. Retrieved January 10, 2016.
6. "Delivery Start-Ups Are Back Like It's 1999". The New York Times. Retrieved
January 10, 2016.
7. "Online food delivery ordering is about to overtake phone ordering in the US -
Quartz". Qz.com. Retrieved January 10, 2016.
8. "Restaurant food delivery heating up". Columbian.com. Retrieved January 10,
2016.
9. "Peapod". Retrieved January 8, 2016.
10. "Pizza Hut Celebrates 20th Anniversary of World's First Online Purchase With
50 Percent Off Online Deal for Hut Lovers Members". Restaurantnews.com.
Retrieved January 8, 2016.

You might also like