Online Book Purchase
Online Book Purchase
BANGALORE UNIVERSITY
Project Report on
Undertaken at
DEPARTMENT OF COMPUTER SCIENCE
REVA INSTITUTE OF MANAGEMENT STUDIES
For the partial fulfillment of the award of the
Degree of
Bachelor of Computer Application
Submitted by
1
ONLINE BOOK PURCHASE SYSTEM
CERTIFICATE
RUKMINI EDUCATIONAL CHARITABLE TRUST
Certified that the project work entitled "ONLINE BOOK PURCHASE SYSTEM" is a
bonafide work carried out by VINAY M.C (154PSB7018).Of VI semester BCA in partial
fulfillment for the award of Bachelor of Computer Application from Bangalore University
during the academic year 2017 -2018 The project report has been approved as it has
satisfied the requirements of the project work prescribed by the University of Bangalore.
2
ONLINE BOOK PURCHASE SYSTEM
ACKNOWLEDGEMENT
3
ONLINE BOOK PURCHASE SYSTEM
DECLARATION
VINAY MC (154PSB7018)
BCA VI SEM
4
ONLINE BOOK PURCHASE SYSTEM
CONTENTS
SYNOPSIS
SYSTEM STUDY AND ANALYSIS
SYSTEM DESIGN
DATA FLOW DIAGRAM
ER DIAGRAM
SOFTWARE DEVELOPMENT LIFE CYCLE
DATABASE DESIGN
SYSTEM REQUIREMENTS
IMPLEMENTATION
SCREEN SHOTS
TESTING
COCLUSION
BIBILOGRAPHY
5
ONLINE BOOK PURCHASE SYSTEM
SYNOPSIS
6
ONLINE BOOK PURCHASE SYSTEM
HIGH SECURITY
EASY TO HANDLE
7
ONLINE BOOK PURCHASE SYSTEM
2.1 INTRODUCTION
System Study and Analysis is a process of gathering and interpreting facts, diagnosing
problem solving activity that requires intensive communication between the system
users and system developers. System analysis or study is an important phase of any
system development process. The system is studied to the minutest detail and analyzed.
The system analyst plays the role of the interrogator and dwells deep into the working of
the present system. The system is viewed as a whole and the input to the system are
identified. The outputs from the organizations are traced to the various
identifying the relevant and decisional variables, analyzing and synthesizing the various
action.
8
ONLINE BOOK PURCHASE SYSTEM
A detailed study of the process must be made by various techniques like interviews,
questionnaires etc. The data collected by these sources must be scrutinized to arrive to a
system is called the existing system. Now the existing system is subjected to close study
and problem areas are identified. The designer now functions as a problem solver and
tries to sort out the difficulties that the enterprise faces. The solutions are given as
proposals. The proposal is then weighed with the existing system analytically and the
best one is selected. The proposal is presented to the user for an endorsement by the
user. The proposal is reviewed on user request and suitable changes are made. This is
Preliminary Study is the process of gathering and interpreting facts, using the
information for further studies on the system. Preliminary study is problem solving
activity that requires intensive communication between the system users and system
developers. It does various feasibility studies. In these studies a rough figure of the
system activities can be obtained, from which the decision about the strategies to be
a detailed study of existing system is carried along with all the steps in system analysis.
An idea for creating a better project was carried and the next steps were followed.
9
ONLINE BOOK PURCHASE SYSTEM
system requested is feasible. Feasibility Study is carried out to select the best system
Feasibility study is both necessary and prudent to evaluate the feasibility of the project
at the earliest possible time. It involves preliminary investigation of the project and
examines whether the designed system will be useful to the organization. Months or
Years of Effort, thousand for millions of money and untold professional embarrassment
Economical Feasibility.
2.2.1Technical Feasibility
Technology is not a constraint to type system development. We have to find out whether the
necessary technology, the proposed equipments have the capacity to hold the data, which is
The technical feasibility issues usually raised during the feasibility stage of
This software is running in windows 2000 Operating System, which can be easily
installed.
10
ONLINE BOOK PURCHASE SYSTEM
This feasibility test asks if the system will work when it is developed and
installed.
The proposed system produces best results and gives high performance. It can be
Economical Feasibility deals about the economical impact faced by the organization to
implement a new system. Financial benefits must equal or exceed the costs. The cost of
conducting a full system, including software and hardware cost for the class of
11
ONLINE BOOK PURCHASE SYSTEM
At present, manual system is being utilized in the pharmacy. It requires the pharmacist to manually
monitor each drug that is available in the pharmacy. Pharmacy Management has kept paper record in
filing cabinets. Managing a very large pharmacy with records on papers will be tedious and difficult to
keep track of inventories with regards to the drugs in the store, expiry date, quantity of drugs available
based on the categories and their functions. This implies that these services will be manually completed
by the pharmacist. This usually leads to mistakes as the workload of the pharmacist increases. This
system also ensures that there exists a level of restricted access based on functionality and role. This
system also provides optimal drug inventory management by monitoring the drug movement in the
pharmacy. Significant amount of time is allocated for writing the order as the pharmacist needs to go
through the stock balance and make rough estimate of the amount to order based on Figures. The
system will not be able to handle drug prescription, drug to drug interaction.
12
ONLINE BOOK PURCHASE SYSTEM
It is the user friendly application for Pharmacist which reduces the burden and helps to manage all
sections of Pharmacy like Medicine Management and Billing etc., which improve the processing
efficiency. This will enhance the efficiency of clinical work and ease patient’s convenience, bearing in
mind that in Ethiopia is heading towards pharmaceutical care of patients. It deals with the automating
tasks of maintaining of Bills. In Pharmacy, Billing management is the key process. In addition, medical
system will be able to process drug prescription with ease. Including safe data store about medicine as
well as fast searching, delete and update of medicines. The medical billing system is built for the sake
of ensuring effective and clear data saving and manipulating as well as neat work on the pharmacy
medical products.
Advantages:
The existing of Medical Store System is manually which require more paper work
so it needs to computerized the system to get following benefits.
Computer enhances easy and simple means of Storing information. The space
short of time.
Maintenance of data is very easy and workload is reduced.
13
ONLINE BOOK PURCHASE SYSTEM
SYSTEM DESIGN
INTRODUCTION
System Design is the most creative and challenging phase in the system life cycle.
Design is the first step into the development phase for any engineered product or
system. Design is a creative process. A good design is the key to effective system.
System design is a solution how to approach the creation of a new system. System
The logical flow of a system and define the boundaries of a system. It includes the
following steps:
14
ONLINE BOOK PURCHASE SYSTEM
Reviews the current physical system – its data flows, file content, volumes,
frequencies etc.
Prepares output specifications – that is, determines the format, content and Frequency of
reports.
Prepares input specifications – format, content and most of the input functions.
Prepares a logical design walk through of the information flow, output, input, controls
Physical system produces the working systems by define the design specifications that
tell the programmers exactly what the candidate system must do. It includes the
following steps:
Design physical information flow through the system and a physical design Walk
through.
15
ONLINE BOOK PURCHASE SYSTEM
Devise a test and implementation plan and specify any new hardware/software.
Design/Specification activities
Concept formulation.
Problem understanding.
Feasibility study.
Requirements engineering.
Architectural design.
Input Design deals with what data should be given as input, how the data should be
arranged or code, the dialog to guide the operating personnel in providing input,
methods for preparing input validations and steps to follow when error occur. Input
computer-based system. This design is important to avoid errors in the data input
process and show the correct direction to the management for getting correct
screens for the data entry to handle large volume of data. The goal of designing input is
to make data entry easier and to be free from errors. The data entry screen is designed in
16
ONLINE BOOK PURCHASE SYSTEM
such a way that all the data manipulates can be performed. It also provides record
viewing facilities.
When the data is entered it will check for its validity. Data can be entered with the help
of screens. Appropriate messages are provided as when needed so that the user will not
be in maize of instant. Thus the objective of input design is to create an input layout that
is easy to follow.
In this project, the input design consists of a log in screen, tab for compression/
decompression, source and destination browsing button, a menu list for selecting the
A quality output is one, which meets the requirements of the end user and presents the
information clearly. The objective of output design is to convey information about past
intelligible output design should improve the system’s relationship with the user and
helps in decisions making. In output design the emphasis is on displaying the output on
the information requirement and objectives of the end users. The major formation of the
17
ONLINE BOOK PURCHASE SYSTEM
output is to convey the information and so its layout and design need a careful
consideration.
characters)
Data flow oriented techniques advocate that the major data items handled by a
system must be first identified and then the processing required on these data items to
produce the desired outputs should be determined. The DFD (also called as bubble
chart) is a simple graphical formalism that can be used to represent a system in terms of
input data to the system, various processing carried out on these data, and the output
generated by the system. It was introduced by De Macro (1978), Gane and Sarson
18
ONLINE BOOK PURCHASE SYSTEM
19
ONLINE BOOK PURCHASE SYSTEM
20
ONLINE BOOK PURCHASE SYSTEM
21
ONLINE BOOK PURCHASE SYSTEM
22
ONLINE BOOK PURCHASE SYSTEM
23
ONLINE BOOK PURCHASE SYSTEM
24
ONLINE BOOK PURCHASE SYSTEM
PLANNING:
IMPLEMENTATION:
The software engineers start writing the code according to the client’s
requirements.
25
ONLINE BOOK PURCHASE SYSTEM
TESTING :
This is the process of finding defects or bugs in the created software.
DOCUMENTATION:
Every step in the project is documented for future reference and for the
improvement of the software in the development process. The design
documentation may include writing the application programming
interface(API) .
MAINTAINING:
WATERFALL MODEL:
This model involves finishing the first phase completely before commencing
the next one. When each phase is completed successfully , it is reviewed to
see if the project is on track and whether it is visible to continue.
INCREMENTAL MODEL:
This life cycle model involves multiple development cycles. The cycles are
divided up into smaller iterations. These iterations can be easily managed and
go through a set of phases including requirements , design , implementation
and testing . A working version of the software is produced during the first
iteration , so working software is created early in the development process.
SYSTEM ANALYSIS
PROPOSED SYSTEM
The main goal of the system is to automate the process carried out in the
organization with improved performance and realize the vision of paperless
admission. Some of the goals of the system are listed below:
Manage large number of student details.
Manage all details of student who registered for the course
Create student accounts and maintain the details effectively.
View all the details of the students.
Reduce the work load in interview the students for selection.
29
ONLINE BOOK PURCHASE SYSTEM
ECONOMIC FEASIBILITY
30
ONLINE BOOK PURCHASE SYSTEM
TECHNICAL FEASIBILITY:
can be reduced. Since, processing speed is very high and the work is reduced
in the maintenance point of view management convince that the project is
operationally feasible
OPERATIONAL FEASIBILITY
The two main programming approaches are top-down approach and bottom-
up approaches. Here while doing the software for online placement system;
we use the bottom up approach. In bottom up method, the sub modules are
designed and developed and these are assembled together to get the main
system. The individual modules are coded and debugged with example data
given checks ready for the major project design. The individual module
transaction processing can be checked thoroughly so that minute mistakes
and correction can be passed from one module to other when required and
these requisition are also considered at the development stage of code
32
ONLINE BOOK PURCHASE SYSTEM
module. These checked and corrected modules will be integrated to make the
entire system. This project also followed the bottom up design. The sub
modules are prepared very keenly and minute notations are made.
In the online admission system, the sub modules are designed first, these sub
modules are integrated into main modules. Other modules also designed in
the same fashion. Each module is tested at the beginning when they are
integrated with the sub-modules These checked and corrected modules are
integrated to make the main system,
i.e. Online Admission System
33
ONLINE BOOK PURCHASE SYSTEM
through which a user can retrieve stored information in an effective and efficient
manner. The data is the purpose of any database and must be protected.
The database design is a two level process. In the first step, user requirements are
gathered together and a database is designed which will meet these requirements as
clearly as possible. This step is called Information Level Design and it is taken
In the second step, this Information level design is transferred into a design for the
specific DBMS that will be used to implement the system in question. This step is called
Physical Level Design, concerned with the characteristics of the specific DBMS that
will be used. A database design runs parallel with the system design. The organization
of the data in the database is aimed to achieve the following two major objectives.
Data Integrity
Data independence
34
ONLINE BOOK PURCHASE SYSTEM
SOFTWARE REQUIREMENTS
TECHNOLOGY : PHP/MYSQL
35
ONLINE BOOK PURCHASE SYSTEM
HARDWARE REQUIREMENTS
RAM 2 GB or more
4 GB or more recommended
36
ONLINE BOOK PURCHASE SYSTEM
37
ONLINE BOOK PURCHASE SYSTEM
SOFTWARE DESCRIPTION
general-purpose scripting language that is especially suited for web development and
Currently there are over half a million domains running PHP. Much of PHP’s syntax is
borrowed from C, Java and Pearl with a couple of unique PHP-specific features thrown
in. The goal of the language is to allow web developers to write dynamically generated
pages quickly. PHP eliminates the need for numerous small cgi programs by allowing
you to place simple scripts directly in your HTML files. It also makes it easier to
manage large websites by placing all components of a web page in a single html file.
PHP is mainly focused on server-side scripting, so you can do anything any other CGI
program can do, such as collect form data, generate dynamic page content, or send and
receive cookies.
PHP can be used on all major operating systems, including Linux, many Unix variants
(including HP-UX, Solaris and Open BSD), Microsoft Windows, Mac OS X, RISC OS,
and
probably others. PHP has also support for most of the web servers today.
One of the strongest and most significant features in PHP is its support for a wide
38
ONLINE BOOK PURCHASE SYSTEM
range of databases. Writing a database-enabled web page is incredibly simple using one
of the database specific extensions (e.g., for mysql), or using an abstraction layer like
PDO, or connect to any database supporting the Open Database Connection standard via
the ODBC extension. Other databases may utilize URL or sockets, like Couch DB.
My SQL is the world's most popular open source database software, with over 100
With its superior speed, reliability, and ease of use, My SQL has become the preferred
choice for Web, Web 2.0, SaaS, ISV, Telecom companies and forward-thinking
fast reliable and flexible Database Management System. It provides a very high
system.
My SQL is one of the most popular Relational Database Management System on the
web. The My SQL Database has become the world's most popular open source
Database,
because it is free and available on almost all the platforms. The My SQL can run on
Unix ,
39
ONLINE BOOK PURCHASE SYSTEM
window, and Mac OS. My SQL is used for the internet applications as it provides good
speed
and is very secure. My SQL was developed to manage large volumes of data at very
high
speed to overcome the problems of existing solutions. My SQL can be used for variety
of
applications but it is mostly used for the web applications on the internet.
WAMP is a free and open source cross-platform web server solution stack package,
consisting mainly of the Apache HTTP Server, My SQL database, and interpreters for
scripts
WAMP's name is an acronym for- X (to be read as " cross " meaning
cross-
The program is released under the terms of the GNU General Public License and acts as
a free web server capable of serving dynamic pages. WAMP is available for Microsoft
Windows, Linux, Solaris, and Mac OS X, and is mainly used for web development
projects. This
software is useful while you are creating dynamic web pages using programming
languages
40
ONLINE BOOK PURCHASE SYSTEM
Requirements and features: WAMP requires only one zip, tar, 7z, or exe file to be
downloaded
and run, and little or no configuration of the various components that make up the web
server
Apache/My SQL/PHP and Perl. It also comes with a number of other modules including
Installing WAMP takes less time than installing each of its components separately.
Self-contained, multiple instances of XAMPP can exist on a single computer, and any
given
instance can be copied from one computer to another. It is offered in both a full,
standard
tool, to allow
website designers and programmers to test their work on their own computers without
any
access to the Internet. To make this as easy as possible, many important security features
are
web
pages on the World Wide Web. A special tool is provided to password-protect the most
41
ONLINE BOOK PURCHASE SYSTEM
environment) is
for
● a debugger
The boundary between an integrated development environment and other parts of the
control
system and various tools are integrated to simplify the construction of a GUI. Many
modern
IDEs also have a class browser, an object inspector, and a class hierarchydiagram, for
use
42
ONLINE BOOK PURCHASE SYSTEM
4.1 CODING
Admin
<?php
require_once "./template/header.php";
?>
<div class="form-group">
<div class="col-md-4">
</div>
</div>
<div class="form-group">
<div class="col-md-4">
</div>
</div>
</form>
<?php
require_once "./template/footer.php";
?>
Admin ADD
<?php
session_start();
require_once "./functions/admin.php";
require "./template/header.php";
require "./functions/database_functions.php";
$conn = db_connect();
if(isset($_POST['add'])){
$isbn = trim($_POST['isbn']);
44
ONLINE BOOK PURCHASE SYSTEM
$title = trim($_POST['title']);
$author = trim($_POST['author']);
$descr = trim($_POST['descr']);
$price = floatval(trim($_POST['price']));
$publisher = trim($_POST['publisher']);
// add image
$image = $_FILES['image']['name'];
45
ONLINE BOOK PURCHASE SYSTEM
$directory_self = str_replace(basename($_SERVER['PHP_SELF']),
'', $_SERVER['PHP_SELF']);
$uploadDirectory = $_SERVER['DOCUMENT_ROOT'] .
$directory_self . "bootstrap/img/";
$uploadDirectory .= $image;
move_uploaded_file($_FILES['image']['tmp_name'],
$uploadDirectory);
'$publisher'";
if(!$findResult){
('$publisher')";
if(!$insertResult){
46
ONLINE BOOK PURCHASE SYSTEM
exit;
$publisherid = mysql_insert_id($conn);
} else {
$row = mysqli_fetch_assoc($findResult);
$publisherid = $row['publisherid'];
$query = "INSERT INTO books VALUES ('" . $isbn . "', '" . $title . "', '" .
$author . "', '" . $image . "', '" . $descr . "', '" . $price . "', '" . $publisherid . "')";
if(!$result){
exit;
} else {
header("Location: admin_book.php");
47
ONLINE BOOK PURCHASE SYSTEM
?>
<table class="table">
<tr>
<th>ISBN</th>
</tr>
<tr>
<th>Title</th>
</tr>
<tr>
<th>Author</th>
</tr>
<tr>
<th>Image</th>
</tr>
<tr>
48
ONLINE BOOK PURCHASE SYSTEM
<th>Description</th>
rows="5"></textarea></td>
</tr>
<tr>
<th>Price</th>
</tr>
<tr>
<th>Publisher</th>
</tr>
</table>
primary">
</form>
<br/>
<?php
if(isset($conn)) {mysqli_close($conn);}
49
ONLINE BOOK PURCHASE SYSTEM
require_once "./template/footer.php";
?>
Admin Books
<?php
session_start();
require_once "./functions/admin.php";
require_once "./template/header.php";
require_once "./functions/database_functions.php";
$conn = db_connect();
$result = getAll($conn);
?>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Author</th>
50
ONLINE BOOK PURCHASE SYSTEM
<th>Image</th>
<th>Description</th>
<th>Price</th>
<th>Publisher</th>
<th> </th>
<th> </th>
</tr>
<tr>
$row['book_isbn']; ?>">Edit</a></td>
$row['book_isbn']; ?>">Delete</a></td>
51
ONLINE BOOK PURCHASE SYSTEM
</tr>
<?php } ?>
</table>
<?php
if(isset($conn)) {mysqli_close($conn);}
require_once "./template/footer.php";
?>
Admin Delete
<?php
$book_isbn = $_GET['bookisbn'];
require_once "./functions/database_functions.php";
$conn = db_connect();
if(!$result){
52
ONLINE BOOK PURCHASE SYSTEM
exit;
header("Location: admin_book.php");
?>
Admin Edit
<?php
session_start();
require_once "./functions/admin.php";
require_once "./template/header.php";
require_once "./functions/database_functions.php";
$conn = db_connect();
if(isset($_GET['bookisbn'])){
$book_isbn = $_GET['bookisbn'];
} else {
exit;
53
ONLINE BOOK PURCHASE SYSTEM
if(!isset($book_isbn)){
exit;
book_isbn = '$book_isbn'";
if(!$result){
exit;
$row = mysqli_fetch_assoc($result);
?>
54
ONLINE BOOK PURCHASE SYSTEM
enctype="multipart/form-data">
<table class="table">
<tr>
<th>ISBN</th>
</tr>
<tr>
<th>Title</th>
</tr>
<tr>
<th>Author</th>
<td><input type="text"
required></td>
55
ONLINE BOOK PURCHASE SYSTEM
</tr>
<tr>
<th>Image</th>
<td><input type="file"
name="image"></td>
</tr>
<tr>
<th>Description</th>
<td><textarea name="descr"
</tr>
<tr>
<th>Price</th>
</tr>
<tr>
<th>Publisher</th>
56
ONLINE BOOK PURCHASE SYSTEM
<td><input type="text"
</tr>
</table>
btn-default">
</form>
<br/>
success">Confirm</a>
<?php
if(isset($conn)) {mysqli_close($conn);}
require "./template/footer.php"
?>
57
ONLINE BOOK PURCHASE SYSTEM
Admin Signout
<?php
session_start();
session_destroy();
header("Location: index.php");
?>
Admin verify
<?php
session_start();
if(!isset($_POST['submit'])){
exit;
require_once "./functions/database_functions.php";
$conn = db_connect();
$name = trim($_POST['name']);
$pass = trim($_POST['pass']);
58
ONLINE BOOK PURCHASE SYSTEM
exit;
$pass = sha1($pass);
// get from db
if(!$result){
exit;
$row = mysqli_fetch_assoc($result);
59
ONLINE BOOK PURCHASE SYSTEM
$_SESSION['admin'] = false;
exit;
if(isset($conn)) {mysqli_close($conn);}
$_SESSION['admin'] = true;
header("Location: admin_book.php");
?>
Books
<?php
session_start();
$count = 0;
// connecto database
require_once "./functions/database_functions.php";
$conn = db_connect();
60
ONLINE BOOK PURCHASE SYSTEM
if(!$result){
exit;
require_once "./template/header.php";
?>
<div class="row">
<div class="col-md-3">
$query_row['book_isbn']; ?>">
61
ONLINE BOOK PURCHASE SYSTEM
</a>
</div>
<?php
$count++;
$count = 0;
break;
} ?>
</div>
<?php
if(isset($conn)) { mysqli_close($conn); }
require_once "./template/footer.php";
?>
62
ONLINE BOOK PURCHASE SYSTEM
Cart
<?php
session_start();
$count = 0;
// connecto database
require_once "./functions/database_functions.php";
$conn = db_connect();
if(!$result){
exit;
require_once "./template/header.php";
?>
<div class="row">
<div class="col-md-3">
63
ONLINE BOOK PURCHASE SYSTEM
$query_row['book_image']; ?>">
</a>
</div>
<?php
$count++;
$count = 0;
break;
} ?>
</div>
<?php
if(isset($conn)) { mysqli_close($conn); }
require_once "./template/footer.php";
?>
Checkout
<?php
/*
Array of session(
64
ONLINE BOOK PURCHASE SYSTEM
books
),
items => 0,
*/
session_start();
require_once "./functions/database_functions.php";
require "./template/header.php";
?>
<table class="table">
<tr>
<th>Item</th>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
</tr>
<?php
65
ONLINE BOOK PURCHASE SYSTEM
$conn = db_connect();
$book =
mysqli_fetch_assoc(getBookByIsbn($conn, $isbn));
?>
<tr>
$book['book_author']; ?></td>
</tr>
<?php } ?>
<tr>
<th> </th>
<th> </th>
</tr>
</table>
<?php } ?>
<div class="form-group">
66
ONLINE BOOK PURCHASE SYSTEM
<div class="col-md-4">
class="form-control">
</div>
</div>
<div class="form-group">
4">Address</label>
<div class="col-md-4">
class="form-control">
</div>
</div>
<div class="form-group">
<div class="col-md-4">
class="form-control">
</div>
</div>
<div class="form-group">
Code</label>
67
ONLINE BOOK PURCHASE SYSTEM
<div class="col-md-4">
class="form-control">
</div>
</div>
<div class="form-group">
4">Country</label>
<div class="col-md-4">
class="form-control">
</div>
</div>
<div class="form-group">
class="btn btn-primary">
</div>
</form>
<?php
} else {
68
ONLINE BOOK PURCHASE SYSTEM
if(isset($conn)){ mysqli_close($conn); }
require_once "./template/footer.php";
Edit book
<?php
if(!isset($_POST['save_change'])){
exit;
$isbn = trim($_POST['isbn']);
$title = trim($_POST['title']);
$author = trim($_POST['author']);
$descr = trim($_POST['descr']);
$price = floatval(trim($_POST['price']));
$publisher = trim($_POST['publisher']);
$image = $_FILES['image']['name'];
$_SERVER['PHP_SELF']);
$uploadDirectory = $_SERVER['DOCUMENT_ROOT'] .
$directory_self . "bootstrap/img/";
69
ONLINE BOOK PURCHASE SYSTEM
$uploadDirectory .= $image;
move_uploaded_file($_FILES['image']['tmp_name'], $uploadDirectory);
require_once("./functions/database_functions.php");
$conn = db_connect();
'$publisher'";
if(!$findResult){
('$publisher')";
if(!$insertResult){
exit;
70
ONLINE BOOK PURCHASE SYSTEM
book_title = '$title',
book_author = '$author',
book_descr = '$descr',
book_price = '$price'";
if(isset($image)){
} else {
if(!$result){
exit;
} else {
header("Location: admin_edit.php?bookisbn=$isbn");
?>
Process
<?php
session_start();
$_SESSION['err'] = 1;
71
ONLINE BOOK PURCHASE SYSTEM
if(trim($value) == ''){
$_SESSION['err'] = 0;
break;
if($_SESSION['err'] == 0){
header("Location: purchase.php");
} else {
unset($_SESSION['err']);
require_once "./functions/database_functions.php";
require "./template/header.php";
// connect database
$conn = db_connect();
extract($_SESSION['ship']);
$card_number = $_POST['card_number'];
$card_PID = $_POST['card_PID'];
$card_expire = strtotime($_POST['card_expire']);
72
ONLINE BOOK PURCHASE SYSTEM
$card_owner = $_POST['card_owner'];
// find customer
if($customerid == null) {
$country);
$bookprice = getbookprice($isbn);
if(!$result){
exit;
73
ONLINE BOOK PURCHASE SYSTEM
session_unset();
?>
check your email to get your order confirmation and shipping detail!.
<?php
if(isset($conn)){
mysqli_close($conn);
require_once "./template/footer.php";
?>
Publisher
<?php
session_start();
require_once "./functions/database_functions.php";
$conn = db_connect();
if(!$result){
74
ONLINE BOOK PURCHASE SYSTEM
exit;
if(mysqli_num_rows($result) == 0){
exit;
require "./template/header.php";
?>
<ul>
<?php
while($row = mysqli_fetch_assoc($result)){
$count = 0;
if(!$result2){
exit;
if($pubInBook['publisherid'] == $row['publisherid']){
75
ONLINE BOOK PURCHASE SYSTEM
$count++;
?>
<li>
</li>
<?php } ?>
<li>
</li>
</ul>
<?php
mysqli_close($conn);
require "./template/footer.php";
?>
Purchase
<?php
session_start();
$_SESSION['err'] = 1;
if(trim($value) == ''){
76
ONLINE BOOK PURCHASE SYSTEM
$_SESSION['err'] = 0;
break;
if($_SESSION['err'] == 0){
header("Location: checkout.php");
} else {
unset($_SESSION['err']);
$_SESSION['ship'] = array();
if($key != "submit"){
$_SESSION['ship'][$key] = $value;
require_once "./functions/database_functions.php";
$title = "Purchase";
require "./template/header.php";
// connect database
77
ONLINE BOOK PURCHASE SYSTEM
?>
<table class="table">
<tr>
<th>Item</th>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
</tr>
<?php
$conn = db_connect();
$book =
mysqli_fetch_assoc(getBookByIsbn($conn, $isbn));
?>
<tr>
$book['book_author']; ?></td>
</tr>
<?php } ?>
<tr>
<th> </th>
78
ONLINE BOOK PURCHASE SYSTEM
<th> </th>
</tr>
<tr>
<td>Shipping</td>
<td> </td>
<td> </td>
<td>20.00</td>
</tr>
<tr>
<th> </th>
<th> </th>
</tr>
</table>
<?php } ?>
<div class="form-group">
<div class="col-lg-10">
79
ONLINE BOOK PURCHASE SYSTEM
<option value="VISA">VISA</option>
<option value="MasterCard">MasterCard</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
</div>
</div>
<div class="form-group">
<div class="col-lg-10">
</div>
80
ONLINE BOOK PURCHASE SYSTEM
</div>
<div class="form-group">
<div class="col-lg-10">
</div>
</div>
<div class="form-group">
</div>
</div>
</form>
<?php
} else {
if(isset($conn)){ mysqli_close($conn); }
require_once "./template/footer.php";
?>
81
ONLINE BOOK PURCHASE SYSTEM
Verify
<?php
$email = $_POST['inputEmail'];
$pswd = $_POST['inputPasswd'];
if(!$conn){
exit;
if(!$result){
echo "Empty!";
exit;
break;
82
ONLINE BOOK PURCHASE SYSTEM
?>
Database
-- version 4.4.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
/*!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 */;
--
83
ONLINE BOOK PURCHASE SYSTEM
-- Database: `www_project`
--
-- --------------------------------------------------------
--
--
--
--
('admin', 'd033e22ae348aeb5660fc2140aec35850c4da997');
-- --------------------------------------------------------
--
84
ONLINE BOOK PURCHASE SYSTEM
--
--
--
Eierman', 'mobile_app.jpg', 'Now, one book can help you master mobile app
development with both market-leading platforms: Apple''s iOS and Google''s Android.
Perfect for both students and professionals, Learning Mobile App Development is the
only tutorial with complete parallel coverage of both iOS and Android. With this guide,
85
ONLINE BOOK PURCHASE SYSTEM
you can master either platform, or both - and gain a deeper understanding of the issues
both iOS and Android, mastering the entire mobile app development lifecycle, from
planning through licensing and distribution.\r\n\r\nEach tutorial in this book has been
carefully designed to support readers with widely varying backgrounds and has been
extensively tested in live developer training courses. If you''re new to iOS, you''ll also
find an easy, practical introduction to Objective-C, Apple''s native language.', '20.00', 6),
'Doing Good by Doing Good shows companies how to improve the bottom line by
and business thrive. International CSR consultant Peter Baines draws upon lessons
learnt from the challenges faced in his career as a police officer, forensic investigator,
and founder of Hands Across the Water to describe the Australian CSR landscape, and
the factors that make up a program that benefits everyone involved. Case studies
illustrate the real effect of CSR on both business and society, with clear guidance toward
maximizing involvement, engaging all employees, and improving the bottom line. The
case studies draw out the companies that are focusing on creating shared value in
meeting the challenges of society whilst at the same time bringing strong economic
profits give back to the community from which those profits arise. At the same time,
shareholders are demanding their share and are happy to see dividends soar. Getting this
right is a balancing act, and Doing Good by Doing Good helps companies delineate a
86
ONLINE BOOK PURCHASE SYSTEM
tasks with multiple input and output arrangements, designed specifically to cope in
gain proficiency in the development and operation of PLCs based on the IEC 61131-3
standard. Using the freely-available* software tool CoDeSys, which is widely used in
industrial design automation projects, the author takes a highly practical approach to
PLC design using real-world examples. The design tool, CoDeSys, also features a built
in simulator / soft PLC enabling the reader to undertake exercises and test the
'Nicholas C. Zakas', 'pro_js.jpg', 'If you want to achieve JavaScript''s full potential, it is
critical to understand its nature, history, and limitations. To that end, this updated
version of the bestseller by veteran author and JavaScript guru Nicholas C. Zakas covers
JavaScript from its very beginning to the present-day incarnations including the DOM,
Ajax, and HTML5. Zakas shows you how to extend this powerful language to meet
specific needs and create dynamic user interfaces for the web that blur the line between
desktop and internet. By the end of the book, you''ll have a strong understanding of the
significant advances in web development as they relate to JavaScript so that you can
87
ONLINE BOOK PURCHASE SYSTEM
building a simple database-backed app from scratch, using HTML, JavaScript, and other
open source tools. Through hands-on tutorials, this practical guide shows inexperienced
web app developers how to create a user interface, write a server, build client-server
chapter includes practice problems, full examples, and mental models of the
development workflow. Ideal for a college-level course, this book helps you get started
with web app development by providing you with a solid grounding in the process.',
'20.00', 3),
the world. Many have attempted to replace it as the language of the Web, but JavaScript
has survived, evolved, and thrived. Why did a language created in such hurry succeed
where others failed?\r\n\r\nThis guide gives you a rare glimpse into JavaScript from
people intimately familiar with it. Chapters contributed by domain experts such as Jacob
Thornton, Ariya Hidayat, and Sara Chipps show what they love about their favorite
language - whether it''s turning the most feared features into useful tools, or how
fast and secure web applications. Each release of ASP.NET gets better and removes a lot
of the tedious code that you previously needed to put in place, making common
ASP.NET tasks easier. With this book, an unparalleled team of authors walks you
through the full breadth of ASP.NET and the new and exciting capabilities of ASP.NET
88
ONLINE BOOK PURCHASE SYSTEM
4. The authors also show you how to maximize the abundance of features that ASP.NET
offers to make your development process smoother and more efficient.', '20.00', 1),
imagery, digital audio, digital video, digital illustration and 3D, using open source
software packages such as GIMP, Audacity, Blender, and Inkscape. These professional
software packages are used for this book because they are free for commercial use. The
book builds on the foundational concepts of raster, vector, and waveform (audio), and
gets more advanced as chapters progress, covering what new media assets are best for
use with Android Studio as well as key factors regarding the data footprint optimization
work process and why new media content and new media data optimization is so
Olsson', 'c_14_quick.jpg', 'This updated handy quick C++ 14 guide is a condensed code
and syntax reference based on the newly updated C++ 14 release of the popular
that can be used as a handy reference.\r\n\r\nYou won''t find any technical jargon,
bloated samples, drawn out history lessons, or witty stories in this book. What you will
find is a language reference that is concise, to the point and highly accessible. The book
is packed with useful information and is a must-have for any C++ programmer.\r\n\r\nIn
the C++ 14 Quick Syntax Reference, Second Edition, you will find a concise reference
to the C++ 14 language syntax. It has short, simple, and focused code examples. This
89
ONLINE BOOK PURCHASE SYSTEM
book includes a well laid out table of contents and a comprehensive index allowing for
Albahari', 'c_sharp_6.jpg', 'When you have questions about C# 6.0 or the .NET CLR and
its core Framework assemblies, this bestselling guide has the answers you need. C# has
become a language of unusual flexibility and breadth since its premiere in 2000, but this
concepts and use cases, this thoroughly updated sixth edition provides intermediate and
advanced programmers with a concise map of C# and .NET knowledge. Dive in and
discover why this Nutshell guide is considered the definitive reference on C#.', '20.00',
3);
-- --------------------------------------------------------
--
--
90
ONLINE BOOK PURCHASE SYSTEM
COLLATE=latin1_general_ci;
--
--
`country`) VALUES
-- --------------------------------------------------------
--
--
91
ONLINE BOOK PURCHASE SYSTEM
COLLATE=latin1_general_ci;
--
--
(3, 3, '20.00', '2015-12-03 19:34:21', 'test', '123 test', '12121', 'test', 'test'),
-- --------------------------------------------------------
--
92
ONLINE BOOK PURCHASE SYSTEM
--
--
--
VALUES
93
ONLINE BOOK PURCHASE SYSTEM
-- --------------------------------------------------------
--
--
COLLATE=latin1_general_ci;
--
--
(1, 'Wrox'),
(2, 'Wiley'),
(4, 'Apress'),
(6, 'Addison-Wesley');
94
ONLINE BOOK PURCHASE SYSTEM
--
--
--
--
--
--
--
--
--
95
ONLINE BOOK PURCHASE SYSTEM
--
--
--
--
--
--
--
AUTO_INCREMENT,AUTO_INCREMENT=4;
--
--
96
ONLINE BOOK PURCHASE SYSTEM
AUTO_INCREMENT,AUTO_INCREMENT=5;
--
--
AUTO_INCREMENT,AUTO_INCREMENT=7;
*/;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
97
ONLINE BOOK PURCHASE SYSTEM
Screenshots
98
ONLINE BOOK PURCHASE SYSTEM
99
ONLINE BOOK PURCHASE SYSTEM
100
ONLINE BOOK PURCHASE SYSTEM
101
ONLINE BOOK PURCHASE SYSTEM
102
ONLINE BOOK PURCHASE SYSTEM
103
ONLINE BOOK PURCHASE SYSTEM
104
ONLINE BOOK PURCHASE SYSTEM
105
ONLINE BOOK PURCHASE SYSTEM
Confirmation of order
106
ONLINE BOOK PURCHASE SYSTEM
107
ONLINE BOOK PURCHASE SYSTEM
108
ONLINE BOOK PURCHASE SYSTEM
109
ONLINE BOOK PURCHASE SYSTEM
TESTING
110
ONLINE BOOK PURCHASE SYSTEM
INTRODUCTION TO TESTING
Testing is a process of executing a program with the interest of finding an error. A good test is
one that has high probability of finding the yet undiscovered error. Testing should
minimum amount of efforts. Two classes of inputs are provided to test the process
2. A software configuration that includes a test plan and procedure, any testing tool and
1.Unit Testing
Unit test comprises of a set tests performed by an individual program prior to the
integration of the unit into large system. A program unit is usually the smallest free
functioning part of the whole system. Module unit testing should be as exhaustive as
possible to ensure that each representation handled by each module has been tested. All
the units that makeup the system must be tested independently to ensure that they work
as required.
During unit testing some errors were raised and all of them were rectified and handled
2.Integration Testing
Integration testing is a system technique for constructing the program structure while at
the same time conducting tests to uncover errors associated with interfacing. The
111
ONLINE BOOK PURCHASE SYSTEM
objective is to take unit tested modules and build a program structure that has been
dictated by design. Bottom-up integration is the traditional strategy used to integrate the
of unit test followed by testing of the entire system. A sub-system consists of several
The system was done the integration testing. All the modules were tested for their
compatibility with other modules. The test was almost successful. All the modules
coexisted very well, with almost no bugs. All the modules were encapsulated very well
3.Validation Testing
errors that have been uncovered and corrected and the final series of software test; the
validation test begins. Steps taken during software design and testing can greatly
improve the probability of successful integration in the larger system. System testing is
actually a series of different tests whose primary purpose is to fully exercise the
4. Recovery Testing
It is a system that forces the software to fail in a variety of ways and verifies that the
5. Security Testing
It attempts to verify that protection mechanisms built into a system will in fact protect it
from improper penetration. The system’s security must of course be tested from in
112
ONLINE BOOK PURCHASE SYSTEM
6. Stress Testing
Stress tools are designed to confront programs with abnormal situations. Stress testing
executes a system in a manner that demands resources in abnormal quantity and volume.
Black box testing is done to find out the following information as shown in below:
2. Interface errors.
4. Performance error.
5. Termination error.
The mentioned testing is carried out successfully for this application according to the
After preparing test data, the system under study is tested using the test data. While
testing the system using test data, errors are again uncovered and corrected by using
above testing and corrections are also noted for future use.
113
ONLINE BOOK PURCHASE SYSTEM
BIBILOGRAPHY
114
ONLINE BOOK PURCHASE SYSTEM
CONCLUSION
The entire project has been developed and deployed as per the
requirements stated by the user , it is found to be bug free as per the
testing standards that is implemented. Any specification-untraced errors
will be concentrated in the coming versions, which are planned to be
developed in near future. This Project is Online Admission System.
So, The students can login and fill the application form for admission.
115