Professional Documents
Culture Documents
Online Gifts Shopping: Bachelor of Computer Science BY Muhil Arasan P (DEPT NO: 15-CS-133)
Online Gifts Shopping: Bachelor of Computer Science BY Muhil Arasan P (DEPT NO: 15-CS-133)
Online Gifts Shopping: Bachelor of Computer Science BY Muhil Arasan P (DEPT NO: 15-CS-133)
BY
MUHIL ARASAN P
CHENNAI – 600034
BONAFIDE CERTIFICATE
The project is a web based shopping system for an existing shop. The project
objective is to deliver the online shopping application into android platform. The
project is an attempt to provide the advantages of online shopping to customers of the
real shop. It helps buying the products in the shop anywhere through internet by using
an android device. This system can be implemented to any shop in the locality or to
multi dimensional branded shops having retail outlet chains . since application in the
smart phone it is easy to accessible and always available. Online gifts shopping
project is a web portal project is implemented in web platform using PHP
programming language. The project is the advanced method of selling gifts through
online application. As I present trend online shopping has became a best place for
buying products so much branded companies selling their products through online
web portals nike, adidas, reebok this application also works on some principles users
need to register with application and select the product from categories and add
product to chart and buy product by selection online payment on deleivery.
Front End:PHP
Back End:MYSQL
ACKNOWLEDGEMENT
First, I would like to thank the Almighty without whom this task would have
not been achieved. I express my sincere and profound gratitude to our college
principal Rev.Dr.M.AROCKIASAMY XAVIER, S.J. and Deputy Principal
Dr.FATIMA VASANTH for their encouragement and support to do my
project in our computer Lab.
I take this opportunity to thank all the staff members and the Lab
Administrators of the Computer Science Department who rendered their help
directly to finish my project in time.
Last but not the least, I would like to express my hearty thanks to my parents,
without whom I would not have come to this level in my life. My hearty thanks
to my friends and well-wishers who supported and encouraged me to complete
this project successfully.
MUHIL ARASAN.P
(15-CS-133)
TABLE OF CONTENTS
CHAPTER CONTENTS PAGE NO
1. INTRODUCTION
SYSTEM ANALYSIS
2.1 Problem Definition
2.2 Existing System
2. 2.3 Proposed System
2.4 System Requirements
2.4.1 Hardware Requirements
2.4.2 Software Requirements
SYSTEM DESIGN
3.1 Architectural Design
3. 3.2 Database Design
3.3 GUI Design
4. PROJECT DESCRIPTION
SYSTEM DEVELOPMENT
5. 5.1 Language/Tool
5.2 Pseudo Code
SYSTEMTESTING AND
6. VALIDATIONS
6.1 Test Cases and Testing
6.2 Validations
7. USER MANUAL
8. SYSTEM IMPLEMENTATION
9. CONCLUSION
10. FUTURE ENHANCEMENT
11. BIBLIOGRAPHY
APPENDIX A – DATA DICTIONARY
APPENDIX B– SAMPLE CODING
APPENDIX C– SAMPLE OUTPUT
CHAPTER 1
INTRODUCTION
INTRODUCTION
SYSTEM ANALYSIS
SYSTEM ANALYSIS
As of now, most of the online mobile shopping websites don’t have a user -friendly
website. Even, if they have the users/customers are not able to use it efficiently as it is
not well maintained. While in this project the users can view the product and view
detailed information of the product and then add to their cart and pay by cash on delivery.
They can have the view of their order status which is managed by the admin .
The existing system is manual system. Needs to be converted into an automated system. Risk of
mismanagement of data in the online gifts shopping system. Less security in purchasing. No
proper coordination between different application and the users. Fewer users friendly accuracy
not guaranteed in the gifts shopping system. Not in reach of distant users. If we need to buy a gift
it is long process as the user has to approach the shop and it consumes tome and manual power.
Online gifts shopping system. The development of the new system. Which we try to
automate the entire process keeping in view of the database integration approach. User
friendliness is provided in the application with various controls. The system makes the overall
project management much easier and flexible. There is no risk of data management at any level
while the project development in the under process. It provides high level security with the
different level of authentication. Users from any part of the world cam make use of the system.
New users will process accurate results. New system will be much better in performance as
compared to existing one. If we need to buy a gifts in this system it is a short process.
2.4 SYSTEM REQUIREMENTS (Minimum)
• Processor: I 3 Processor
• Platform: MS Windows 7
• Front-end: PHP
• Back-end: MYSQL
SYSTEM DESIGN
SYSTEM DESIGN
System design is the process of defining the architecture, modules, interfaces, and
data for a system to satisfy specified requirements.
LEVEL 0:
LEVEL 1:
LEVEL 2:
USE CASE DIAGRAM
manage users
Ship orders
admin
View orders
Create invoice
Update profile
Search gifts
Add to cart
Make payment
Login table
Customer table:
Purchase table:
Customer portal
Customer :
LOGIN
Password:
Name :
Contact : Email :
Address :
Door no:
Street:
District:
State:
Pin:
Username:
Password:
Confirm password:
Register
CHAPTER 4
PROJECT DESCRIPTION
PROJECT DESCRIPTION
There are several modules in the proposed system, which will help the end user to
interact with the system with ease. The below specified are key modules which are
integrated in the project.
1. ADMIN
2. VISITORS
3. USERS
Admin:
Visitors:
Search Products:
Customer can search various products.
View Gifts Category:
Customer can view gifts category and products.
Users:
Registration:
New Customer can register in our web site.
SYSTEM DEVELOPMENT
5.1 LANGUAGE/TOOLS
PHP was originally createdby “RASMUS LERDORF” in1995.He has developed PHP to
monitoring his online resume and related personal information. At first PHP was named
as Personal Home Page. First version is PHP and php2.0 released in the year 18-6-1995.
In 1997 the name was formally changed to “PHPHypertext Pre-Processor”. PHP-3
released in the year 1998 “PHP core” was released in the May of 2000 with a new
concept called ZEND engine 1.0.
5.1.1 Usage:
PHP is the general-purpose scripting Language That is especially suited for web
development. PHP generally runs on web server. PHP code in a requested file is executed
by the PHPruntime, usually to create dynamic web page content. It can also be used for
command –line scripting and client-side GUI applications.PHP can be deployed on most
web servers, many operating systems and platforms, and can be used with many relational
database management systems. It is available free of charge, and the PHP group provide
the complete source code for user to build, customize and extend for their own use.
PHP primarily acts as a filter, talking input from a file or stream containing text and/or
PHP instruction and outputs another stream of data; most commonly the output will be
HTML. Since PHP 4, the parser compiles input to produce byte code for processing by
the Zend Engine, giving improved performance over its interpreter predecessor.
Originally designed to create dynamic web pages, PHP now focuses mainly on server -
side scripting, and it is similar to other server-side scripting language that provide
dynamic content from a web server to a client, such as Microsoft’s Active Server pages,
sun Microsystems’ Java server pages. PHP has also attracted the development of many
frameworks that provide building blocks and a design structure to promote Rapid
Application Development (RAD). Some of these include CakePHP, symphony, code
Igniter, and Zend Framework, offering features similar to another web application frame
works.
The LAMP and WAMP architectures have become popular in the web industry as a way
of deploying web applications. PHP is commonly used as the p in this bundle alongside
Linux, Apache and MYSQL, although the p may also refer to Python or Perl.
5.1.2 Security
Hosting PHP application on a server requires a careful and constant attention to deal with
these security risks. There are advanced protection patches such as showing and
Hardening –patch, especially designed for web hosting environments. Installing PHP as a
CGI binary rather than as an Apache module is the preferred method for added security.
5.1.3 Advantages:
PHPis one of the most popular server-side scripting language running today. It is used for
creating dynamic web pages that interact with the user offering customized information.
PHP offers many advantages, it is fast,stable,secure.Ramusleadoff wrote the first
PHP(first called personal home page) scripts as a series of Perl scripts that he used to
track visitors to his webpage and to see who was viewing his resume. He eventually
rewrote PHP as a scripting engine and added support for forms. PHP has been evolving
since 1994 as an open source code. A community of followers and developers formed and
began UsingPHP code is inserted directly into the HTML that makes up a website. When
a visitor comes to the website, the code is executed. Because PHP is a server side
technology, the user does not need any special browser or plug-ins to see the PHP in
action.
MYSQL
MYSQL is a relational database management system (RDBMS) that runs as a server
providing multi-user access to a number of databases. MYSQL is based on SQL
(Structured Query Language). MYSQL is used in a wide range of applications, including
data warehousing, e-commerce, web databases, logging application and distributed
application. In simpler terms MYSQL can be defined as a database system used on the
web-server somewhere to store data or automate procedures. MYSQL holds all of your
tables, PHP acts as your queries and your forms are basically web pages with fields in
them
FEATURES OF MYSQL:
Open Source:
MYSQL is also open source in that it’s free and falls under the GNU (General Public
License).
Performance:
MYSQL performs exceptionally well due to the format of its default table, MYISAM.
MYISAM database leave a small footprints using little disk space, memory and CPU.
While the system runs on the windows platform without flow, it tends to perform better
on Linux and other UNIX-like systems. It is very robust.
Security:
All passwords traffic is encrypted connecting to a server. Certain privileges and password
system makes it very flexible and allows host-based verification. SSH and SSL support
safe and secure connection, powerful data encryption and decryption functions
5.2 PSEUDO CODE
The rules of pseudo code are reasonably straight forward. All statement showing
“dependency” is to be indented. These include while, do, for and if switch. Example
below will illustrate this notation.
IF email is blank
Error message: “This doesn’t look like an email address. Please try again.”
IF email AND password AND password confirmation all contain valid values
If both match
Admin Login:
If both match
Manage Products:
Testing is the process of executing a program or system with the intent of finding
errors. Or, it involves any activity aimed at evaluating an attribute or capability of a
program or system and determining that it meets its required results. Software is not
unlike other physical processes where inputs are received, and outputs are produced.
Where software differs is in the way it fails. Most physical systems fail in a fixed (and
reasonably small) set of ways. By contrast, software can fail in many bizarre ways.
Detecting all the different failure modes for software is generally infeasible.
Testing is one of the most important stages in software development which can
prove whether the implementation and the requirements are in fidelity with each other.
Testing can also confirm if the software specifications are complete and consistent. One
of the main goals of testing is to have a minimum number of test cases that will find most
implementation errors. The software/system that is been tested out here is known as
OBSE (Objective Business Specification Environment). This is a process wherein the
queries submitted online are evaluated by a group of experts.
Another e.g. for valid and invalid data check is that, in case ten -digit no is entered during
the entry of transaction, and that number does not exist in the master file, o r if the
number entered is an exit case, then the programs should not allow the entry of such
cases.
Thus, all conditions present in the program should be tested. Before proceeding,
one must make sure that all the programs are working independently.
successfully
registration
2 Login Enter null username Itshouldnot dothe It will show message Pass
or password. login and show that enter username
error. and password.
3 Category Enter null in It will not add It will show message Pass
mandatory fields. category that enter the
category name
& description
Category Enter correct data It should add It thewill show the Pass
of all required field. Category message that
category added
4 Product Enter null in It will not give It will show the Pass
mandatory permission to add messages that enter
fields the product the required details.
5 Order Enter null in It will not give It will show the Pass
mandatory permission to give messages that enter
fields the order. the required details.
Validation refers to the process of data validation, ensuring that data inserted into an
application satisfies pre-determined formats or complies with stated length and character
requirement and other defined input criteria. It may also ensure that only data that is
either true or real can be entered into a database. There are two types of validation that
can check the authenticity and reliability of the user input.
<?php
session_start();
if(isset($_POST['btnsubmit1']))
$Email = addslashes($_REQUEST['txtEmail']);
$password = addslashes($_REQUEST['txtPassword']);
if($c = mysql_query($query))
if(mysql_num_rows($c)>0)
$res = mysql_fetch_array($c);
if($res['email_add']==$Email && $res['password']==$password)
$_SESSION['email_add']=$Email;
$_SESSION['id']=$res['cust_id'];
header("Location:index.php")
else
{
echo $msg;
else
echo $msg;
else
}}
?>
</form>
Registration:
<?php
if(isset($_POST['btnSubmit'])
$FName=$_POST['txtFName'];
$LName=$_POST['txtLName'];
$UName=$_POST['txtUName'];
$Email=$_POST['txtEmail'];
$Gender=$_POST['selGender'];
$Country=$_POST['txtCountry'];
$State=$_POST['txtState'];
$City=$_POST['txtCity'];
$ZipCode=$_POST['txtZipCode'];
$Password=$_POST['txtPassword'];
$ConfirmPassword=$_POST['txtConfirmPassword'];
$PhoneNo=$_POST['txtPhoneNo'];
if(empty($FName)||empty($LName)||empty($UName)||empty($Email)||empty($Gender)||e
mpty($Country)||empty($State)||empty($City)||empty($ZipCode)||empty($Passw ord)||emp
ty($ConfirmPassword)||empty($PhoneNo))
else
?>
<option value="-1">Gender</option>
<option>Male</option>
<option>Female</option>
</select>
</form>
CHAPTER 7
USER MANUAL
Home page:
The page gives viewer an attractive introduction to the showroom website and users need to
enter this page to access everything.
Login page:
Login page consists of two login one for admin and one for user. admin login can view summary
and add or delete product while user login allows purchase of items.
Registration page:
Registration helps or signup page allows registration of new users in order to login and buy items
from website.
Product details:
Here we can give our feedback details and product information are provided here.
Purchase page:
Here we can buy the products that means we can purchase the product and information are
provided here.
About page:
About page gives introduction to the company website and all one needs to know about the
website.
CHAPTER 8
SYSTEM IMPLEMENTATION
SYSTEM IMPLEMENTATION
The Project can be compressed and be saved in WINRAR File and can be used in
other Systems.
WAMP SERVER INSTALLATION
CHAPTER 9
CONCLUSION
CONCLUSION:
In this Online Gifts Shopping project, the user is provided with an e-commerce web site
that online Gifts shopping web page can be used to buy products in online. A good
shopping cart design must be accompanied with user-friendly shopping cart logic. It
should be convenient for the customer to view the contents of their cart and to be able to
remove or add items to their cart. The shopping cart web application described in this
online gifts store project provides a number of features that online shopping system
project report are designed to make the customer more comfortable.
This online Gifts shopping project helps in understanding the creation of an interactive
web page and the technologies used to implement it. The design of the project which
includes Data Model and Process Model illustrates how the database is built with
different tables, how the data is accessed and processed from the tables
CHAPTER 10
FUTURE ENHANCEMENT
FUTURE ENHANCEMENT
The online departmental store web application is developed with many features and yet
few more features could be added in future
Profits Maintains.
BIBLIOGRAPHY
BIBLIOGRAPHY
Book:
W. Jason Gilmore.
Roger S. Pressman.
Vikram Vaswani.
Web Reference:
http://www.w3schools.com/php/php_intro.asp
http://www.mysql.com/
http://dev.mysql.com/doc/
https://www.w3schools.com/bootstrap/
APPENDIX A – DATA DICTIONARY
Admin:
Customer:
Feedback:
Product:
APPENDIX B – SAMPLE CODING
LOGIN:
<html>
<head>
<title>Login</title>
</head>
<body>
<div id="main">
<div id="header">
<div id="logo">
<div id="logo_text">
<h1>
</h1>
</div>
</div>
<div id="menubar">
<ul id="menu">
<li><a href="index.php">Home</a></li>
<li><a href="ADIDAS.php">ADIDAS</a></li>
<li><a href="NIKE.php">NIKE</a></li>
</ul>
</div>
</div>
<div id="site_content">
<div id="content">
<p></p>
<p></p>
Phone number:
<p></p>
password:
<p></p>
<p>
</form>
<hr />
<form name="my form1" action="check2.php" method="post">
<p></p>
<p></p>
Admin id:
<p></p>
Password:
</font>
<p></p>
</form>
<p> </p>
<p> </p>
</div>
</div>
</div>
</div>
<div id="content_footer"></div>
</body>
</html>
CONNECTION:
<?php
$con=mysql_connect("localhost","root","");
if(!$con)
$db=mysql_select_db("giftshop",$con);
?>
APPENDIX C – SAMPLE OUTPUT: