Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ON
ONLINE MARKET
A PROJECT
Submitted in partial fulfillment of the requirements for the award of the degree
OF
Vikramjeet Singh
(07890202015)
2015-2018
CANDIDATES’S DECLARATION
I hereby certify that the work which is being presented in the project is the project
report entitled ONLINE MARKET in partial fulfilment of the requirement for the
awards of the degree of “BACHELOR OF COMPUTER APPLICATION “ ,
submitted in the Sri Guru Tegh Bahadur of Management and Information
Technology,Guru Gobind Singh Indraprastha University is an authentic record of
my work carried out under the supervision of Mr. Amandeep Singh Arora
The matter embodied in this project report has not been submitted by us for the award
of my other degree or diploma.
This is to certify that the project entitled: “ONLINE MARKET” done by Mr.
Vikramjeet Singh University Enrolment Number 03490202014 is an authentic work
carried out by them at Sri Guru Tegh Bahadur Institute Of Management &
Information Technology. The matter embodied in this project work has not been
submitted earlier for the award of any degree or diplomas to the best of my
knowledge and belief .The suggestion as approved by the faculty was duly
incorporated.
DATE:
I sincerely thank Mr. Amandeep Singh Arora Assistant Professor Sri Guru Tegh
Bahadur Institute of Management & Information Technology for giving me the
opportunities to work under their able guidance.
As a write through these pages my mind recollects their invaluable suggestions, their
encouragement at every step which was my guiding light.
Last but not the least my sincere thanks to my family and my friends for their valuable
suggestions at every time.
1. INTRODUCTION
1.1 Introduction to the Project 11
3 SOFTWARE DESIGN
3.1 Introduction 21
4 DATABASE DESIGN
4.1 Introduction 29
5 TESTING
5.1 Introduction 33
BIBLOGRAPHY 55
LIST OF FIGURES
Figure Page
Number
Figure 1: The Waterfall Model 15
Figure 2: Requirement Analysis 18
Figure 3:Use Case 20
Figure 4: Context Flow Diagram 23
Figure 5: Data Flow Diagram Level-1 24
Figure 6: Data Flow Diagram Level-2 for Admin 25
Figure 7: Data Flow Diagram Level-2 for User 26
Figure 8: Data Flow Diagram Level-2 for Login 27
Figure 9: E-R Diagram 31
LIST OF TABLES
Table Page
Number
Admin 29
Register 29
Card 30
LIST OF SCREENSHOTS
10
1.1 Introduction to the Project
Online Market is a form of electronic commerce which allows consumers to directly buy
goods or services from a seller over the Internet using a web browser. Consumers find a
product of interest by visiting the website of the retailer directly or by searching among
alternative vendors using a shopping search engine, which displays the same product's
availability and pricing at different e-retailers. As of 2016, customers can shop online using a
range of different computers and devices, including desktop computers, laptops, tablet
computers and Smartphone’s.
11
CHAPTER-2
REQUIREMENT ANALYSIS
12
2.1 SOFTWARE REQUIREMENT SPECIFICATION
If a document that completely describes what the proposed software should do without
describing how the software will do it, The basic goal of requirements specific to produce the
requirements, which describes the complete external behavior of the proposed software.
However, producing the report is said to be done.
2.1.1 INTRODUCTION
The introduction states the goals and objectives of the software describing it in the context of the
computer -based system. Actually the introduction may be nothing more than the software
people of the planning document.
13
Our Project is based on Waterfall Model.
14
NO. REQUIREMENTS ESSENTIAL DESCRIPTION OF REMARKS
OR THE
DESIRABLE REQUIREMENTS
15
RS 7 The administrator Essential The administrator The
have the right of have the administrator
adding, deleting and right of adding, have the
modifying the details deleting and right of adding,
modifying the details deleting and
modifying the
details
RS 8 The system should Essential After sign in the user User must
have a logout page must logout logout
from the system the page after
booking tickets
2. Design
In this phase the SRS in transformed into a structure that is suitable for
implementation in some programming language. Here overall system architecture is defined
and high level design work is performed.
16
STEPS IN REQUIREMENT ANALYSIS
Draw the
context
diagram
Develop
prototype
(optional)
Model
the
requirements
Finalize
the
Requirements
Functional Requirements
There are registered people in the system. Some are approvers. An approver can also be a
requestor. In an organization, the hierarchy could be engineers/Managers/Business
Managers/Managing Director etc. In a college, it could be Lecturer/Professor/Head of the
Department/Dean/Principal etc.
The system should be able to:-
Login a user.
Login an admin
Allow a user to enter his/her details.
Admin can add/delete/modify the things.
DESIGN CONSTRAINTS
17
o GUI- User interface should be easy to operate.
Requirements-While designing we need to change design of project accordingly.
Policies- new policies can be added as and when required.
For Server:-
For Clients:-
Following is a tabular representation of the technology to be used for the development of the
proposed solution:
Technologies PHP
Tools Xampp
Data Base Microsoft MYSQL
18
2.6. USE CASE DIAGRAMS
A use case diagram at its simplest is a representation of a user's interaction with the system
and depicting the specifications of a use case. A use case diagram can portray the different
types of users of a system and the various ways that they interact with the system. This type
of diagram is typically used in conjunction with the textual use case and will often be
accompanied by other types of diagrams as we
19
CHAPTER – 3
SOFTWARE DESIGN
20
3.1. Introduction
This chapter will focus on the design of the system using diagrams to illustrate graphically
certain sections of the software system.
LIST OF SYMBOLS
SYMBOL NAME FUNCTION
21
entire software element as a single bubble with input and output data indicating by incoming
and outgoing arrows.
22
3.4 First Level DFD
23
3.5. Second Level DFD
1. ADMIN
24
2. USER
25
3. LOGIN
26
CHAPTER – 4
DATABASE DESIGN
27
4.1 Introduction
This article/tutorial will teach the basis of relational database design and explains how to
make a good database design. It is a rather long text, but we advise to read all of it. Designing
a database is in fact fairly easy, but there are a few rules to stick to. It is important to know
what these rules are, but more importantly is to know why these rules exist, otherwise you
will tend to make mistakes!
A small write-up on the database, giving the fields, explaining each field etc should be
written. This write-up can be evaluated on the following points.
1. Clarity and conciseness of the database design. Like, whether key is defined, whether
any redundant fields are there etc.
2. Whether data-storage calculations are made, and if so, whether they are done properly
etc.
3. Whether any data-backup/recovery mechanism is discussed or being thought of.
Employee Number/Registration Number is the Key of the database. The range of valid values
entered below as examples need not be taken as such. They can be modified by the team.
A) Admin
B) Register
28
Birth Day varchar 5 Not Null
Birth Year Year 4 Not Null
Gender Varchar 8 Not Null
Phone timyint 10 Not Null
C) Card
Attributes
Relationship
29
FIGURE 9: ER DIAGRAM
30
CHAPTER-5
TESTING
31
5.1 Introduction
Executing a program with the intent of finding errors is called testing. Testing is
vital to the success of any system. Testing is done at different stages within the
development phase. System testing makes a logical assumption that if all parts
of the system are correct, the goals will be achieved successfully. Inadequate
testing or no testing at all leads to errors that may come up after a long time
when correction would be extremely implementation. The testing of the system
was done on both artificial and live data. In order to test data test cases are
developed. Following are the various methods that are employed for testing:
32
system confers the original user requirement i.e. does the module do
what it wa supposed to do? Seprate schedules were made for functional
testing. It involves prepration of test data,writing test cases,testing for
conformance to test cases and preparation of bug’s listing for non-
comformities.
System testing is done when the entire system has been fully integrated.
The purpose of the system testing is to test how the different modules
interact with each other and whether the entire system provides the
functionality that was expected.
System testing consists of the following steps:
Program Testing
System Testing
System Documentation
User Acceptance Testing
The test-cases is basically a list of test cases that need to be run on the system.
Some of the test cases can be run independently for some components (report
generation from the database, for example, can be tested independently) and
some of the test cases require the whole system to be ready for their execution.
It is better to test each component as and when it is ready before integrating the
components.
33
due to wrong wrong password ‘Invalid password’.
password
3 Unsuccessful Login to the Login should fail Passed
User Verification server with a with an error
due invalid ‘Invalid password’.
to invalid Login login id
id
4 The server should An option for Option for Passed
provide the admin allowing new adding/removing
for allowing users and users is shown.
newly registered deleting old
user to access the users of the
website. system
34
CHAPTER-6
35
6.1.Project Roles and Responsibilities
6.1.1 ROLE
6.1.2 RESPONSIBILITIES
36
CHAPTER-7
CONCLUSION
AND
ACHIEVEMENTS
37
CONCLUSION
The reason to have this project is to make our website wide. The main purpose
of this is to provide the users with lots of information and even admin can
fetch any data he needs in easier and faster way then making it done
physically.
The project is a complete dummy website. We have released all the version
which will make easier to start up their work on it. Further we will also provide
more features that could make it better then now.
Future Scope
The scope of this project is to provide the users with the bundle of
information. As till now if the client wanted to know one detail he use to go
through many process to get any information. But we have provided them to
make it on a click and also it will have many features to add on which will make
up their work on a click to fetch any data needed.
38
Screenshots
1.Homepage of my website.
39
3.This Is the sign up page of my website.
40
41
5.Pop-up notification display.
42
43
6.Order placement section.
44
Coding of my website.
Home page
<!DOCTYPE html>
<html>
<head>
<title>PHPGURUKUL Shopping</title>
</head>
<body>
<!--header -->
<div style="height:120px; width:100%; background-color:#8B8A90;border:0px solid
#000000;">
<!--main-->
<div style="height:118px; width:1150px; margin:auto; border:0px solid #990000;">
<!--logo-->
45
<div style="width:150px; height:115px; float:left; border:0px solid #FFF;"><a
href="index.php">
<img src="images/LOGO.PNG" height="118" width="150"/></a></div><!--logo close-->
<!--right-->
<div style="height:115px; width:990px; margin-top:0px; border:0px solid #FF0000;
float:left;">
<!--menu-->
<div style="width:900px; height:30px; float:left; border:0px solid #CCCC00; font-
size:12px;" align="right">
<a href="index.php" style="text-decoration:none;color:#FFFFFF;"><img
src="images/home.png" height="40" width="63" />
</a>
</div><!--menu close-->
<div style="height:80px; width:490px; border:0px solid #FF0000; float:left;" align="center">
<strong style="color:#FFFFFF; font-size:32px; font-family:"Courier New", Courier,
monospace; margin-top:0px;" align="center"><b>PHPGURUKUL Shopping</b></strong>
</div>
46
<br />
<b>Fatal error</b>: Uncaught Error: Call to undefined function mysql_connect() in
C:\xampp\htdocs\abc\phpgurukulshopping\dbconnection.php:6
Stack trace:
#0 C:\xampp\htdocs\abc\phpgurukulshopping\header.php(47): include()
#1 C:\xampp\htdocs\abc\phpgurukulshopping\index.php(39): include('C:\\xampp\\htdocs...')
#2 {main}
thrown in <b>C:\xampp\htdocs\abc\phpgurukulshopping\dbconnection.php</b> on line
<b>6</b><br />
My Account
<?php
session_start();
if(!isset($_SESSION['email']) ||(!isset($_SESSION['pwd'])))
header('location:login.php');
$email=$_SESSION['email'];
$pwd=$_SESSION['pwd'];
?>
<!DOCTYPE html>
<html>
<head>
<title>PHPGURUKUL Shopping/Myaccount</title>
47
</head>
<body>
</div>
</div><!--menu close-->
</div><!--sliderall close-->
48
<!--slider down data-->
<tr><td>
</div>
</div><!--registration form-->
</div>
</td></tr>
</table>
49
</div>
</div><!--footer close-->
</div><!--main close-->
</body>
</html>
Db connection
<?php
if(isset($_POST['submit']))
include 'dbconnection.php';
$email=$_POST['email'];
$password=$_POST['password'];
//echo"$email<br>$password";
//echo"$que<br>";
50
$res=mysql_query($que);
$count=mysql_num_rows($res);
// echo"QQQQQQQQQQ---------------$count";
//echo"$res";
while($data=mysql_fetch_array($res))
//echo"$data[name]";
if($count!=0)
$_SESSION['email']="$email";
$_SESSION['pwd']="$password";
header('location:cartdetails.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PHPGURUKUL Shopping/login</title>
</head>
<body>
51
<div style="width:100%; height:auto;">
</div>
</div><!--menu close-->
</div><!--sliderall close-->
52
<div style="height:35px; width:1050px; border:0px solid #000000; margin-top:10px;
background-color:#F1F0F0; border-radius:5px; color:#1C7582;">
</div>
<tr><td>
<tr><td>
</table>
</td></tr></table>
</form>
53
</div><!--slider down close-->
</div>
</div><!--footer close-->
</div><!--main close-->
</body>
</html>
Marquee
<script type="text/javascript">
54
leftrightslide[2]='<a > <img
src="images/blackberry.jpg"></a>'
leftrightslide[4]='<a> <img
src="images/canon.jpg"></a>'
leftrightslide[10]='<a ><img
src="images/forbes.jpg"></a>'
55
leftrightslide[18]='<a > <img
src="images/kenstar.jpg"></a>'
leftrightslide[20]='<a ><img
src="images/lenovo.jpg"></a>'
leftrightslide[22]='<a ><img
src="images/milagrow.jpg"></a>'
leftrightslide[23]='<a ><img
src="images/mitashi.jpg"></a>'
</script>
</div>
56
BIBLOGRAPHY
http://www.google.co.in
http://www.youtube.co.in
http://www.wikipedia.com
http://www.w3schools.com
57