1. [1]
AIET/CS
CONTENTS
CERTIFICATES FROM DEPARTMENT i
CANDIDATE DECLARATION ii
ACKNOWLEDGEMENT iii
ABSTRACT iv
TABLE OF CONTENT
Chapter No Name of the Chapter PAGE NO.
1. INTRODUCTION 3
2. REQUIREMENT ANALYSIS 4
3. INTRODUCTION TO PHP 6
4. INTRODUCTION TO JAVASCRIPT 12
5. SYSTEM SPECIFICATION 15
6. SYSTEM DESIGN 16
2. [2]
AIET/CS
7. CODING SHEET 19
8. MODULES OF THE PROJECT 43
9 DATABASE DESIGN 45
10 DESIGN DESCRIPTION 48
11 CONCLUSION AND REFERENCES 63
3. [3]
AIET/CS
CHAPTER-1
INTRODUCTION
The Online food delivery website is designed to enable people to create their profile, upload
their latest recipes and be in touch with all his friends. All the information like Personal
Details, Favourate Details, Sports and Cultural Activities, Interests can be saved by people.
People can register on the website and add friends, send scraps, create album and add photos
to albums. A Delivery network service focuses on building and reflecting of social networks
or social relationships among people, e.g., who share interests and/or Favourate. A social
network service essentially consists of a representation of each user (often a profile), his/her
social links, and a variety of additional services.
Following are the objectives of the Food Delivery Website:
Online Food Delivery allows easy Profile Creation, Creating Albums, Uploading
Photos, Sending Scraps and Adding Friends.
Online Food Delivery processes information and delivers it in stipulated time so as to
facilitate user to arrive at a well defined and accurate decision.
Better Security: The system is secure. There are facilities to logging into system with
user name and password without which, no one can access any data. The password is saved in
encrypted form in the database. Also read and write attributes of the system can be controlled
hence data cannot be tempered and cannot have un-authorized access.
4. [4]
AIET/CS
CHAPTER-2
REQUIREMENT ANALYSIS
1. Content Requirements: All web sites have content. So it’s necessary to capture all
the types of content that will be used on the site. For each type of content identify the
following:
What is the purpose of the content? Is it related to any other content?
Who maintains and updates it? Is there any workflow associated with it?
Who is the audience for this content?
How often is it updated?
2. Functional Requirements: The web site must do certain things to support the
business objectives. These functions need to be clearly defined:
Personalization Functions: Registration and Sign-In, Welcome Back, enabling a user to
signup for newsletters, etc…
Security Functions: Creating a secure registration page, ensuring passwords are secure.
3. Technical Requirements: In order to ensure the web site will support the number of
users who will visit it and ensure the functionality works properly, technical requirements
needs to be document such as:
Expected volumes of users
Expected peak periods of use
Types of content that will create high load (like video and audio files)
Security Requirements (is the site a secure site, rules for passwords)
Performance Requirements (i.e. page load time)
4. Used Technology: To solve the given problem statement the most appropriate
solution is to design an online social networking website. The most suitable and advanced
tool for front end designing a website is HTML,CSS using PHP. PHP is an entirely new
technology for server-side scripting. PHP stands for Hypertext Preprocessor PHP and is
5. [5]
AIET/CS
developed by PHP Core team is used to create web pages and web technologies and is an
integral part of PHP core team. As a member of the PHP framework is a very valuable tool
for programmers and developers as it allows them to build dynamic, rich web sites and web
applications using compiled languages like PHP.
Reasons for using PHP in developing this website are:
PHP drastically reduces the amount of code required to build large applications.
With built-in Windows authentication and per-application configuration, your
applications are safe and secured.
The PHP framework is complemented by a rich toolbox and designer in the Visual
Studio integrated development environment.
The Web server continuously monitors the pages, components and applications running
on it. If it notices any memory leaks, infinite loops, other illegal activities, it immediately
destroys those activities and restarts itself.
Most suitable tool for back end of this website is MYSQL Server . MYSQL server provides a
great database facility and has very enhanced functionality as compared to other database
servers. Following features make it exceptionally good to use in this system:
MYSQL server is exclusively designed for developers. Whatever the function or
procedure that we write in dot net environment those function or procedure that we directly
execute in MYSQL server environment. This is the new feature in MYSQL.
MYSQL Server makes it simpler and easier to deploy manage and optimize enterprise
data and analytical applications.
So due to these advance features in PHP and SQL Server, this website is made using PHP as
front end and SQL Server as back end.
6. [6]
AIET/CS
CHAPTER-3
INTRODUCTION TO PHP
PHP is a server side scripting technology that enables scripts (embedded in web pages) to be
executed by an Internet server.
PHP stands for Hypertext Preprocessor.
PHP is an interpreted language, i.e. there is no need for compilation.
PHP is a server side scripting language.
PHP is faster than other scripting language e.g. asp and jsp.
PHP is widely used in web development now a days. Dynamic websites can be easily
developed by PHP. But you must have the basic the knowledge of following technologies for
web development as well.
HTML
CSS
JavaScript
AJAX
XML and JSON
JQuery
3.1 The Microsoft PHP Framework:
PHP, known as the most popular server-side scripting language in the world, has evolved a
lot since the first inline code snippets appeared in static HTML files.
These days developers need to build complex websites and web apps, and above a certain
complexity level it can take too much time and hassle to always start from scratch, hence
came the need for a more structured natural way of development. PHP frameworks provide
developers with an adequate solution for that.
In this post we carefully handpicked 10 popular PHP frameworks that can best facilitate and
streamline the process of backend web development.
7. [7]
AIET/CS
Why Use A PHP Framework:
But first, let’s take a look at the top reasons why many developers like to use PHP
frameworks and how these frameworks can level up your development process. Here’s what
PHP frameworks do:
Make speed development possible
Provide well-organized, reusable and maintainable code
Let you grow over time as web apps running on frameworks are scalable
Spare you from the worries about low-level security of a site
Follow the MVC (Model-View-Controller) pattern that ensures the separation of
presentation and logic
Promote modern web development practices such as object-oriented programming
tools
PHP Features:
There are given many features of PHP.
Performance: Script written in PHP executes much faster then those scripts written in
other languages such as JSP & ASP.
Open Source Software: PHP source code is free available on the web, you can
developed all the version of PHP according to your requirement without paying any
cost.
Platform Independent: PHP are available for WINDOWS, MAC, LINUX & UNIX
operating system. A PHP application developed in one OS can be easily executed in
other OS also.
Compatibility: PHP is compatible with almost all local servers used today like
Apache, IIS etc.
Embedded: PHP code can be easily embedded within HTML tags and script.
Metadata:
A MySQL result set contains metadata. The metadata describes the columns found in the result set.
All metadata sent by MySQL is accessible through the mysqli interface. The extension performs no or
negligible changes to the information it receives. Differences between MySQL server versions are not
aligned.
Meta data is access through the mysqli_result interface.
8. [8]
AIET/CS
Security:
PHP is a powerful language and the interpreter, whether included in a web server as a module or
executed as a separate CGI binary, is able to access files, execute commands and open network
connections on the server. These properties make anything run on a web server insecure by default.
PHP is designed specifically to be a more secure language for writing CGI programs than Perl or C,
and with correct selection of compile-time and runtime configuration options, and proper coding
practices, it can give you exactly the combination of freedom and security you need.
As there are many different ways of utilizing PHP, there are many configuration options controlling
its behaviour. A large selection of options guarantees you can use PHP for a lot of purposes, but it
also means there are combinations of these options and server configurations that result in an insecure
setup.
The configuration flexibility of PHP is equally rivaled by the code flexibility. PHP can be used to
build complete server applications, with all the power of a shell user, or it can be used for simple
server-side includes with little risk in a tightly controlled environment. How you build that
environment, and how secure it is, is largely up to the PHP developer.
This chapter starts with some general security advice, explains the different configuration option
combinations and the situations they can be safely used, and describes different considerations in
coding for different levels of security.
Class library:
PHP is a powerful Web site scripting language that makes it easier for Web site developers to create
dynamic and engaging Web pages. Developers can use PHP code with a number of Web site
templates and frameworks for improved functionality and features. However, writing PHP code can
be a tedious and time-consuming process. In order to reduce development time, developers can use
PHP libraries instead of writing code to add features to the site.
Using PHP libraries instead of writing the code can considerably reduce Web site development time,
thereby allowing developers to focus on other important aspects of the Web site design.
Here we have compiled a list of the 15 best PHP libraries that will help Web site developers increase
the functionality of their sites easily and optimize PHP development time.
9. [9]
AIET/CS
Memory management:
The engine's memory management is implemented with features important to a system like PHP. The
exact functionality of the engine's memory management and the optimizations performed are out of
the scope of this document. However, a good understanding of its functionality provides a basis for a
good understanding of the rest of the Hacker's Guide, and introduce you to terminology and
functionality used throughout PHP.
The most important of its features for the Hacker, and the first thing to mention is tracking
allocations. Tracking allocations allow the memory manager to avoid leaks, a thorn in the side of
most Hackers. When PHP is built in debug mode (--enable-debug), detected leaks are reported, in a
perfect world they would never get to deployment.
While tracking allocations is an important, and highly useful feature, the Hacker should not become
lazy! Always attempt to resolve leaks before deploying your code, a memory leak in a SAPI
environment can become a very big problem, very quickly.
Another, perhaps more incidental but still noteworthy, feature is that the memory manager is the part
that allows a hard limit on memory usage for each instance of PHP. As we all know, there is no such
thing as unlimited. If some code is running out of memory, it is likely to be written wrong, either by
the Hacker, or the programmer of PHP. Limiting the memory therefore is not a restriction on the
language that is supposed to be experienced in production, it is simply a way from stopping
development environments from spiraling out of control when mistakes are made, and equally, when
bugs are found in production.
From the Hacker's perspective, the memory management API looks very much like libc's (or
whoever the Hacker prefers!) malloc implementation.
3.2 PHP Frameworks keywords:
Easier and quicker programming
Reduced amount of code
Declarative programming model
Richer server control hierarchy with events
Larger class library
Better support for development tools
10. [10]
AIET/CS
PHP Controls:
Any PHP script is built out of a series of statements. A statement can be an assignment, a function
call, a loop, a conditional statement or even a statement that does nothing (an empty statement).
Statements usually end with a semicolon. In addition, statements can be grouped into a statement-
group by encapsulating a group of statements with curly braces. A statement-group is a statement by
itself as well. The various statement types are described in this chapter.
Event Aware Controls:
All PHP objects on a Web page can expose events that can be processed by PHP code.
Load, Click and Change events handled by code makes coding much simpler and much better
organized.
ASP.NET Components:
Web applications have made huge leaps and bounds in improving user experience thanks to a lot of
recently developed Ajax technology. When you combine some neat functionality courtesy of PHP
with the cleverness of JavaScript you can produce some pretty cool results. In an effort to help you
take it up a notch, we’d like to share some methods for helping your site anticipate a user’s next
move.
User Authentication:
PHP supports form-based user authentication, cookie management, and automatic redirecting
of unauthorized logins.
User Accounts and Roles:
PHP allows user accounts and roles, to give each user (with a given role) access to different
server code and executables.
High Scalability:
Much has been done with PHP to provide greater scalability.
Server-to-server communication has been greatly enhanced, making it possible to scale an
application over several servers. One example of this is the ability to run XML parsers, XSL
transformations and even resource hungry session objects on other servers.
11. [11]
AIET/CS
Compiled Code:
The first request for an PHP page on the server will compile the PHP code and keep a cached
copy in memory. The result of this is greatly increased performance.
Easy Configuration: Configuration of PHP is done with plain text files.
Configuration files can be uploaded or changed while the application is running. No need to
restart the server. No more metabase or registry puzzle.
Easy Deployment: No more server-restart to deploy or replace compiled code. PHP simply
redirects all new requests to the new code.
Compatibility:
PHP is not fully compatible with earlier versions of PHP4, so most of the old PHP code will
need some changes to run under PHP.
To overcome this problem, PHP uses a new file extension ".php". This will make web
applications able to run side by side with standard web applications on the same server.
12. [12]
AIET/CS
CHAPTER-4
INTRODUCTION TO JAVASCRIPT
WhatisJavaScript?
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.
JavaScript was first known as Live Script, but Netscape changed its name to JavaScript,
possibly because of the excitement being generated by Java. JavaScript made its first
appearance in Netscape 2.0 in 1995 with the name Live Script. The general-purpose core of
the language has been embedded in Netscape, Internet Explorer, and other web browsers.
The ECMA-262 Specification defined a standard version of the core JavaScript language.
JavaScript is a lightweight, interpreted programming language.
Designed for creating network-centric applications.
Complementary to and integrated with Java.
Complementary to and integrated with HTML.
Open and cross-platform
Client-sideJavaScript:
Client-side JavaScript is the most common form of the language. The script should be included in or
referenced by an HTML document for the code to be interpreted by the browser.
It means that a web page need not be a static HTML, but can include programs that interact with the
user, control the browser, and dynamically create HTML content.
The JavaScript client-side mechanism provides many advantages over traditional CGI server-side
scripts. For example, you might use JavaScript to check if the user has entered a valid e-mail address
in a form field.
The JavaScript code is executed when the user submits the form, and only if all the entries are valid,
they would be submitted to the Web Server.
JavaScript can be used to trap user-initiated events such as button clicks, link navigation, and other
actions that the user initiates explicitly or implicitly.
13. [13]
AIET/CS
Advantages of JavaScript:
The merits of using JavaScript are:
Less server interaction: You can validate user input before sending the page off to
the server. This saves server traffic, which means less load on your server.
Immediate feedback to the visitors: They don't have to wait for a page reload to see
if they have forgotten to enter something.
Increased interactivity: You can create interfaces that react when the user hovers
over them with a mouse or activates them via the keyboard.
Richer interfaces: You can use JavaScript to include such items as drag-and-drop
components and sliders to give a Rich Interface to your site visitors.
LimitationsofJavaScript:
We cannot treat JavaScript as a full-fledged programming language. It lacks the following
important features −
Client-side JavaScript does not allow the reading or writing of files. This has been
kept for security reason.
JavaScript cannot be used for networking applications because there is no such
support available.
JavaScript doesn't have any multithreading or multiprocessor capabilities.
Once again, JavaScript is a lightweight, interpreted programming language that allows you
to build interactivity into otherwise static HTML pages.
JavaScriptDevelopmentTools:
One of major strengths of JavaScript is that it does not require expensive development tools.
You can start with a simple text editor such as Notepad. Since it is an interpreted language
inside the context of a web browser, you don't even need to buy a compiler.
To make our life simpler, various vendors have come up with very nice JavaScript editing
tools. Some of them are listed here −
14. [14]
AIET/CS
Microsoft FrontPage − Microsoft has developed a popular HTML editor called
FrontPage. FrontPage also provides web developers with a number of JavaScript
tools to assist in the creation of interactive websites.
Macromedia Dreamweaver MX − Macromedia Dreamweaver MX is a very popular
HTML and JavaScript editor in the professional web development crowd. It provides
several handy prebuilt JavaScript components, integrates well with databases, and
conforms to new standards such as XHTML and XML.
Macromedia Home Site 5 − Home Site 5 is a well-liked HTML and JavaScript
editor from Macromedia that can be used to manage personal websites effectively.
WhereisJavaScriptToday?
The ECMAScript Edition 5 standard will be the first update to be released in over four years.
JavaScript 2.0 conforms to Edition 5 of the ECMAScript standard, and the difference between the two
is extremely minor.
The specification for JavaScript 2.0 can be found on the following site: http://www.ecmascript.org/
Today, Netscape's JavaScript and Microsoft's JScript conform to the ECMAScript standard, although
both the languages still support the features that are not a part of the standard.
15. [15]
AIET/CS
CHAPTER-5
SYSTEM SPECIFICATION
5.1 Software Requirements:
Operating Environment Win 2000/XP
Platform PHP Framework & Appache
Database MySQL
5.2 Hardware Requirements:
Processor P IV
RAM 2 GB
Minimum Space Required 5 GB
Display 32 bit color
16. [16]
AIET/CS
CHAPTER-6
SYSTEM DESIGN
After carefully analyzing the requirements and functionality of the web application, we had
two important diagrams by the end of the analysis phase. They are the ER diagram and data
flow diagram which were the basis for finding out entities and relationships between them,
the flow of information.
Data Flow Diagram:
Level 0 DFD
Fig. 6.1.1
26. [26]
AIET/CS
<div style='overflow:hidden;height:300px;width:100%;'>
<div id='gmap_canvas' style='height:300px;width:100%;'></div>
<div><small><a href="http://embedgooglemaps.com">embed google
maps</a></small></div>
<div><small><a
href="http://www.autohuren.world/">autohuren</a></small></div>
<style>#gmap_canvas img{max-
width:none!important;background:none!important}</style>
</div>
<script type='text/javascript'>
function init_map(){var myOptions =
{zoom:16,center:new
google.maps.LatLng(25.343232200000003,74.64145557802748),
mapTypeId:
google.maps.MapTypeId.ROADMAP};
map = new
google.maps.Map(document.getElementById('gmap_canvas'), myOptions);
marker = new google.maps.Marker({map:
map,position: new
google.maps.LatLng(25.343232200000003,74.64145557802748)});
infowindow = new
google.maps.InfoWindow({content:'<strong>JUHU CHOPATTI: The Mini
Restaurant</strong><br>Opposite Terapanth Bhawan, Nagori Garden, Shastri Nagar,
Bhilwara - 311001(Rajasthan)<br>'});
google.maps.event.addListener(marker,
'click', function(){infowindow.open(map,marker);});
infowindow.open(map,marker);}google.maps.event.addDomListener(window, 'load',
init_map);
</script>
</div>
<div class="col-md-6">
27. [27]
AIET/CS
<p style="color:#06C; font-size:20px; font-family: 'Times New Roman',
Times, serif;"> <strong>TELL US WHAT DO YOU THINK <br/> AND HOW
WE'RE DOING.WRITE US HERE </strong></p>
<br/><br/>
<?php
include('connect.php');
if(isset($_POST['submit']))
{
$fname=$_REQUEST['name'];
$email=$_REQUEST['email'];
$message=$_REQUEST['message'];
$sql1="insert into
`contact_us` (`name` , `email`, `message`, `contact_date`)values('$fname', '$email',
'$message', Now())";
$res=mysql_query($sql1);
if($res>=1)
{
echo '<div
class="success">Thank you for
connecting with us!,
we will contact you soon...</div>';
}
else
{
echo '<div
class="errormsgbox">oops! Error Occured in connecting, Try again after
sometime...</div>';
}
}
?>
<form class="form-horizontal" role="form" method="post" action="">
29. [29]
AIET/CS
</div>
</div>
</form>
</div>
</div>
</div>
<!--Container 2 End-->
<!--Footer Start-->
<?php include ("footer.php"); ?>
About-Us:
<?php include ("header.php"); ?>
<body class="myclass">
<div class="bg img-responsive"></div>
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="detail" style="background-color:#FFF;">
<p> It takes more than exquisite cooking to make a memorable meal.We at Juhu
Chopatti belive an intimate atmosphere in the right location,personal and attentive
service and great company are separate the delicious dinner from an unforgattable
experience</p>
</div>
</div>
<div class="col-md-4">
<div class="detail" style="background-color:#fff;">
<p> It takes more than exquisite cooking to make a memorable meal.We at Juhu
Chopatti belive an intimate atmosphere in the right location,personal and attentive
service and great company are separate the delicious dinner from an unforgattable
experience</p>
30. [30]
AIET/CS
</div>
</div>
<div class="col-md-4">
<div class="detail" style="background-color:#fff;">
<p> It takes more than exquisite cooking to make a memorable meal.We at Juhu
Chopatti belive an intimate atmosphere in the right location,personal and attentive
service and great company are separate the delicious dinner from an unforgattable
experience</p>
</div>
</div>
</div>
</div>
</body>
<!--footer container start-->
<?php include ("footer.php"); ?>
<!-- footer container end-->
Menu:
<style type="text/css">
.b {
background-repeat: no-repeat;
background-size: 100% 100%;
}
.style1 {
font-size: 24px;
font-weight: bold;
color: #993300;
}
.style2, .style4 {
color:#C30;
font-weight: bold;
width:100%;
34. [34]
AIET/CS
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `juhu_chopatti`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`mobile` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
35. [35]
AIET/CS
--
INSERT INTO `admin` (`id`, `name`, `email`, `mobile`, `username`, `password`)
VALUES
(1, 'Bhawani Tiwari', 'bhawanicse@gmail.com', '8104066299', 'admin@gmail.com',
'admin');
-- --------------------------------------------------------
--
-- Table structure for table `contact_us`
--
CREATE TABLE `contact_us` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`email` varchar(150) NOT NULL,
`message` varchar(255) NOT NULL,
`contact_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `contact_us`
--
INSERT INTO `contact_us` (`id`, `name`, `email`, `message`, `contact_date`)
VALUES
(1, 'Bhawani Sharma', 'bhawanicse@gmail.com', 'Hello Admin this is a testing
message', '0000-00-00 00:00:00'),
(2, 'kavita', 'kavita.jangid72@gmail.com', 'hello', '2016-06-05 06:56:37'),
(4, 'kavita', 'kavita.jangid72@gmail.com', 'hello ', '2016-06-05 08:26:31');
-- --------------------------------------------------------
36. [36]
AIET/CS
--
-- Table structure for table `feedback`
--
CREATE TABLE `feedback` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`message` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `menu`
--
CREATE TABLE `menu` (
`id` int(11) NOT NULL,
`i_name` varchar(255) NOT NULL,
`i_price` varchar(255) NOT NULL,
`i_des` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `menu`
--
INSERT INTO `menu` (`id`, `i_name`, `i_price`, `i_des`) VALUES
(1, 'Masala Dosa', '150 INR', ' South-indian'),
(2, 'Dal Bati Churma', '500 INR', 'Rajasthani Food'),
(3, 'Veg Pulav', '90 INR', 'Testing Package'),
(5, 'White Pasta', '150', 'Italian '),
37. [37]
AIET/CS
(45, 'Veg Manchurian', '200', 'dfghjkl'),
(79, 'Paav Bhaji', '100', '90');
-- --------------------------------------------------------
--
-- Table structure for table `orderdetail`
--
CREATE TABLE `orderdetail` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`mobile` varchar(255) NOT NULL,
`address` varchar(1000) NOT NULL,
`item` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `orderdetail`
--
INSERT INTO `orderdetail` (`id`, `name`, `email`, `mobile`, `address`, `item`)
VALUES
(3, 'navya sharma', 'genx.kavita.jpr@gmail.com', '9876543210', 'Jaipur', 'Dal Bati
Churma'),
(4, 'navya sharma', 'genx.kavita.jpr@gmail.com', '9876543210', 'BHilwaDArn', 'Veg
Pulav');
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
38. [38]
AIET/CS
CREATE TABLE `orders` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`mobile` varchar(100) NOT NULL,
`time` varchar(255) NOT NULL,
`date` varchar(255) NOT NULL,
`message` varchar(1000) NOT NULL,
`Reservation_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `name`, `email`, `mobile`, `time`, `date`, `message`,
`Reservation_date`) VALUES
(1, 'kavita jangid', 'kavita.jangid72@gmail.comery', '9782204809', 'eklrmew', 'rjfnrkf',
'rkgfmrf,', '2016-06-05 06:27:17'),
(2, 'kavita jangid', 'kavita.jangid72@gmail.comery', '9782204809', '8:00 pm', '10-05-
16', 'I wanna reserve my table.', '2016-06-05 08:22:10');
-- --------------------------------------------------------
--
-- Table structure for table `register_users`
--
CREATE TABLE `register_users` (
`id` int(11) NOT NULL,
`firstname` varchar(80) NOT NULL,
`lastname` varchar(80) NOT NULL,
`email` varchar(100) NOT NULL,
39. [39]
AIET/CS
`mobile` varchar(255) NOT NULL,
`password` varchar(50) NOT NULL,
`Registration_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `register_users`
--
INSERT INTO `register_users` (`id`, `firstname`, `lastname`, `email`, `mobile`,
`password`, `Registration_date`) VALUES
(43, 'masoom', 'raza', 'abcd@gmail.com', '9931049549', 'Masoom', '2016-06-01
12:12:58'),
(44, 'kavita', 'jangid', 'kavita.jangid72@gmail.comery', '9782204809', 'kavita', '2016-
06-05 06:05:13'),
(45, 'navya', 'sharma', 'genx.kavita.jpr@gmail.com', '9876543210', 'kavita', '2016-06-
05 08:53:47'),
(46, 'kavita', 'jngid', 'xyz@gmail.com', '785136944', '123456', '2016-12-06 18:59:09');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `contact_us`
--
ALTER TABLE `contact_us`
ADD PRIMARY KEY (`id`);
40. [40]
AIET/CS
--
-- Indexes for table `feedback`
--
ALTER TABLE `feedback`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `menu`
--
ALTER TABLE `menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orderdetail`
--
ALTER TABLE `orderdetail`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `register_users`
--
ALTER TABLE `register_users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
41. [41]
AIET/CS
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `contact_us`
--
ALTER TABLE `contact_us`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `feedback`
--
ALTER TABLE `feedback`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `menu`
--
ALTER TABLE `menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=80;
--
-- AUTO_INCREMENT for table `orderdetail`
--
ALTER TABLE `orderdetail`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `orders`
--
42. [42]
AIET/CS
ALTER TABLE `orders`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `register_users`
--
ALTER TABLE `register_users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=47;
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET
COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
43. [43]
AIET/CS
CHAPTER-8
MODULES OF THE PROJECT
From the point of view of functionality, the sample application in this series mainly consists
of the following parts: registration and login modules, scrapbook and photos modules.
Concretely, however, the online shopping web application includes the following modules:
8.1 Modules Introduction:
8.1.1 Registration and Login Module
Registering user information.
Submitting user information
User login
User logoff
8.1.2 Profile Management Module
User Details Management.
8.1.3 Admin Module
Search Books
Add new books
Create categories
Add new admin
8.2 Modules Description:
8.2.1 Registration and Login Module:
44. [44]
AIET/CS
This module is the initial module of the project. The first stage of the project is
User Registration that is accomplished by this module. In this module, user can register with
website and set Email Id and Password and can login to view his profile. Login details like
password are sent to user’s respective Email Id after registration is completed.
This module enables the user to change his profile image and password.
8.1.2 Profile Management Module:
This module is the initial module of the project. The first stage of the project is
User Registration that is accomplished by this module. In this module, users manage their
module.
8.1.3 Admin Module:
This module is the initial module of the project. The first stage of the project is
User Registration that is accomplished by this module. In this module, Search Books, Add
new books, create new categories, add new admins we can do the all the above functions in
this module.
45. [45]
AIET/CS
CHAPTER-9
DATABASE DESIGN
Once the input data is captured in the system, these may have to be preserved either for a
short or long period. These data will generally be stored in files or databases in logical
manner. The designer will have to advise the techniques of sorting and retrieving data from
these files. The system uses database, which is described as follows.
9.1. TABLE user
9.2. TABLE subcart
48. [48]
AIET/CS
CHAPTER-10
DESIGN DESCRIPTION
10.1 Login Page:
Fig. 10.1
Web Page Description:
This webpage is the starting page of project. User can login to his profile by entering
his email id and password and clicking on sign in button.
Login Page Options:
Sign In
Forgot Password
49. [49]
AIET/CS
Name Details
Sign In Control: Button
Function Description: This option if successful, opens
user account otherwise gives error and prompt user to
give correct email id and password.
Forgot Password Control: Button
Function Description: This option helps user if he forgets
his password.
User Name Control: Textbox
Function Description: User writes the User Name in this
textbox.
Password Control: Textbox
Function Description: User writes password in this
textbox.
50. [50]
AIET/CS
10.2 Registration Page:
Fig. 10.2
Web page description:
This web page includes a form which has several details filled by user for
registration. Each and every entry is checked at each step whether it is correct or not. It
contains two buttons create my account and reset. Create my account button saves the details
in database after successful registration and send details to user’s email-id and redirect the
user to login page, reset button resets the whole form to initial status.
51. [51]
AIET/CS
Name Details
Full name Control: Textbox
Function Description: User writes the first name in this
textbox.
User name Control: Textbox
Function Description: User writes the last name in this
textbox.
Email id Control: Textbox
Function Description: User writes the email id in this textbox.
Password Control: Textbox
Function Description: User writes the password in this
textbox.
Confirm password Control: Textbox
Function Description: User writes the password again in this
textbox.to confirms it. It should be same as written in
password.
City Control: Textbox
Function Description: User writes the City Name in this
textbox.
Contact No. Control: int
Function Description: User writes the Contact in this textbox.
52. [52]
AIET/CS
10.3 Home page:
Fig. 10.3
Web page description:
This is the main page after user login. This page contains various user details that
can be updated. This web page contains links to other web pages like scrapbook, photos,
friends and settings. This page contains an option of sign out and user image. User can
change his image any time. At first login there is no image stored for this user.
63. [63]
AIET/CS
CHAPTER-11
CONCLUSION AND REFERENCES
Online food delivery Website Juhuchopatti.com is well described in terms of its features,
functionality and design, now it is essential to analyze its use in present era. YaariRocks.com
is feasible in present era because of its use in modern busy life. It provides a way to be in
touch with Market and Products. It also provides user different facilities of Buying and
exchange Order. In today’s era internet is an important way of communication and
Juhuchopatti.com aid in it.
The merits of the system are:
It is an extensive system which comprehensively provides almost all the aspects of a
Online Food Delivery Websites.
The package includes the working of website from the user side and provides
authentication for registered users.
It provides secure access and high information integrity among the various modules.
It provides easy navigation from user’s profile to another user’s profile.
The demerits of the system can be given as:
A user cannot upload their books demand.
Users cannot comment on the books.
Latest updates of books are not shown.
On the whole this project is a great learning experience. It strengthened my knowledge the
following areas while developing the website:
Database concepts through MySQL.
Programming using PHP using other web languages like html, css etc.
This Online food delivery Website is very promising in future. Many future enhancements
can be done in this website which will enhance its functionality and provide ease to user.
The future enhancements that can be added are: