You are on page 1of 35

Online CSE Book Store Management System

VISVESVARAYA TECHNOLOGY UNIVERSITY


Jnanasangama, Belagavi, Karnataka-590018

DBMS MINI PROJECT REPORT ON

ONLINE CSE BOOK STORE MANAGEMENT SYSTEM

Submitted in partial fulfilment for the award of the degree of bachelor of engineering in
computer science and engineering

SUBMITTED BY:

PRANITA SHAHI (1KT20CS056)

SUSHMA KARJOL(1KT20CSO87)

Under the Guidance of

Prof. SAVITHA B PATIL

Prof. SUSHMA M
Assistant professor, Dept of CSE, SKIT

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

SRI KRISHNA INSTITUTE OF TECHNOLOGY

BANGALORE – 560090

Dept of CSE,SKIT 2022-2023 Page 1


Online CSE Book Store Management System

SRI KRISHNA INSTITUTE OF TECHNOLOGY

BANGALORE – 560 090

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

CERTIFICATE
This is to certify that the mini project entitled “ONLINE CSE BOOK STORE
MANAGEMENT SYSTEM” as a part of 18CSL58 laboratory, is bonafide work carried out
by a PRANITA SHAHI bearing USN:1KT20CS056 and SUSHMA KARJOL bearing
USN:1KTO20CS087 partial fulfilment for the award of degree in bachelor of
Engineering in Computer Science Engineering from Visvesvaraya Technological
University, Belagavi during the academic year 2022-23. It is certified that all the
corrections/suggestions indicated for internal assessment have been incorporated in
reports submitted in the department Library. This mini project report has been
approved as it satisfies the academic requirements in respect of the mini project report
prescribed for award of said degree.

…………………… ……………………… ….…………..….… Signature of Internal


Guide Signature of the HOD Signature of Principal Mrs. SAVITHA B PATIL
Dr. SHANTHARAM NAYAK Dr. MAHESHA K Assistant professor Professor&
head Principal Dept. of. CSE, SKIT Dept. of. CSE, SKIT
SKIT, Bangalore

Name of the Examiner Signature with date

1…………………… 1………………

2…………………… 2………………

Dept of CSE,SKIT 2022-2023 Page 2


Online CSE Book Store Management System

ACKNOWLEDGMENT

Any achievement does not depend solely on individual efforts but on the
guidance, encouragement and cooperation of intellectuals, elders and
friends. A number of personalities, in their own capacities, have helped us in
carrying out this mini project work. We would like to take this opportunity
to thank them all.
This completion of mini project work brings a sense of satisfaction, but it is
never complete without thanking the persons responsible for its successful
completion.
I express my heartfelt sincere gratitude to Dr SHANTHARAM NAYAK,
Professor and HOD, Department of Computer Science and Engineering, Sri
Krishna Institute of Technology, Bengaluru, for his valuable suggestions and
support.
I extend my special in-depth, heartfelt, sincere gratitude to my guide Prof
SAVITHA B PATIL and Prof SUSHMA M Assistant Professor, Department of
Computer Science and Engineering, Sri Krishna Institute of Technology,
Bengaluru, for her constant support and valuable guidance for completion of
the mini-project work.
I would like to thank all the teaching and non-teaching staff members in my
Department Of Computer Science and Engineering, Sri Krishna Institute of
Technology, Bengaluru, for their support.
Finally, we thank our Parents and Friends and Teacher for their moral
support.

PRANITA SHAHI
1KT20CS056
SUSHMA KARJOL
Dept of CSE,SKIT 2022-2023 Page 3
Online CSE Book Store Management System

1KT20CS087

DECLARATION
I, PRANITA SHAHI and SUSHMA KARJOL student of 5th semester in Computer
Science and Engineering, Sri Krishna Institute of Technology, Bengaluru, hereby declare that
the mini project entitled, “ONLINE CSE BOOK STORE MANAGEMENT SYSTEM” has been
carried out by us under the supervision of Prof SAVITHA B PATIL and Prof SUSHMA M
Assistant professor, Dept. of Computer Science and Engineering, Sri Krishna Institute of
Technology, Bengaluru and submitted in partial fulfilment for the award of degree In
Bachelor of Engineering in Computer Science and Engineering of Visvesvaraya Technological
university, Belagavi during the academic year 2022 – 2023. We further declare that the
report has not been submitted to any other University for the award of any other degree.

PRANITA SHAHI
1KT20CS056
SUSHMA KARJOL
1KT20CS087

Place: Banglore
Date:

Dept of CSE,SKIT 2022-2023 Page 4


Online CSE Book Store Management System

ABSTRACT
The main objective of the project is to create an online book store that allows users to
search and purchase a book online based on title, author and subject. The selected books
are displayed in a tabular format and the user can order their books online through credit
card payment. Using this Website the user can purchase a book online instead of going out
to a book store and wasting time.

There are many online book stores like Powell's Amazon which were designed using Html. I
want to develop a similar website using NET, SQL Server.

Online Book store is an online web application where the customer can purchase books
online. Through a web browser the customers can search for a book by its title or author,
later can add to the shopping cart and finally purchase using credit card transaction. The
user can login using his account details or new customers can set up an account very
quickly. They should give the details of their name, contact number and shipping address.
The user can also give feedback to a book by giving ratings on a score of five. The books are
divided into many categories based on subject like Software, Database, English, and
Architecture etc.

The Online Book Store Website provides customers with online shopping through a web
browser. A customer can, create, sign in to his account, place items into a shopping cart and
purchase using his credit card details.

The Administrator will have additional functionalities when compared to the common user.
He can add, delete and update the book details, book categories, member information and
also confirm a placed order.

This application is developed using HTML, AND PHP Programming languages. The Master
page, data sets, data grids, user controls are used to develop the Online Book store.

Dept of CSE,SKIT 2022-2023 Page 5


Online CSE Book Store Management System

TABLE OF CONTENTS
CHAPTER 1: INTRODUCTION

1.1 Overview……………………………………………………………………………...………………8

1.2 Objectives…………………………………………………………………………….…….…………8

1.3 Functionalities provided by Online Book Store Management System …………..……………...9

CHAPTER 2: SYSTEM ANALYSIS

2.1 Existing System…………………………………………………………………………….………...10

2.2 Proposed system …………………………………….……………………………….…………….10

2.3 System Requirements………………………………………………………………….…………..11

2.3.2Hardware Requirements………………………………………………………….…...…………11

CHAPTER 3: SYSTEM DESIGN

3.1 Introduction…………………………………………………………………………….……………12

3.2 User Interface Design………………………………………………………..…….……………......13

Chapter 4: DATABASE RELATIONSHIP

4.1 SCHEMA……………………………………………………………………………….……………….14

4.2 E-R DIAGRAM ……………………………………………………………………….……………….15

4.3 LIST OF TABLES WITH ATTRIBUTES AND CONSTRAINTS…………………..……………16-17

CHAPTER 5 SYSTEM IMPLEMENTATION

5.1 Introduction …………………………………………………………………………….……………18

5.2 Tool and Technology………………………………………………………………….…………….18

5.2.1 PHP……………………………………………………………………………………………..18-19

5.2.2 Apache……………………………………………………………………………….….………..19

5.2.3 MySQL………………………………………………………………………………….………..19

5.2.4 XAMPP Server……………………………………………………………………….……….19

Dept of CSE,SKIT 2022-2023 Page 6


Online CSE Book Store Management System

CHAPTER 6: SYSTEM TESTING

6.1 Unit testing …………………………………………………………………..…………….………………….20

6.2 Integration testing…………………………………………………………………….………..……………20

6.3 Functional testing ……………………………………………………………………..…..……………….21

6.4 System Testing………………………………………………………………………………………………..21

6.5 White Box Testing………………………………………………………………..………………………..…22

6.6 Black Box Testing………………………………………………………………………………...…………22

Database connection code in PHP:

Admin……………………………………………………………………………….…………………..………23-24

Admin_verify………………………………………………………………………………………….………..25-26

CHAPTER 7: Results and screenshots

Welcome page …………………………………………………………………………………………….……….27

Admin login page……………………………………………………………………………..……..……...……..27

List of Books……………………………………………………………………………………….……….………..28

List of Publishers………………………………………………………………………………..….….…...…..…28

Publisher Book………………………………………………………………………………..……..…..……..…..29

Book Details…………………………………………………………………………………………..…..……....…29

My Cart………………………………………………………………………………………………………..………..30

Check out Pages…………………………………………………………………...…………..………...….……….30

Purchasing a Books…………………………………………………………………………………….………….31

Adding a New Books……………………………………………………………………………………...………..31

CHAPTER 8: Conclusion and Future Enhancement………………………..…….…….……….32

BIBILIOGRAPHY …………………………………………………….……………………...………….33

Dept of CSE,SKIT 2022-2023 Page 7


Online CSE Book Store Management System

CHAPTER 1

INTRODUCTION

1.1Overview
In this era of highly advanced software, one can observe a lot of progress in the zone of
architectural design and its principles. There are various innovative and efficient software
engineering markets which have made the life of a common man very simple and effective.
Our Online Bookstore is one such software. Using the online bookstore system has a lot
many benefits. There is absolutely no necessity for a consumer to go out in search of a
particular book.

*The objective of our project is to develop a basic online book store management website
for the sales of books over the internet. The website allows a user to search for different
books of different categories which are available for purchase. Online book store is a virtual
store on the internet where customers can browse the catalogue books of interest.

*The selected books may be collected in a shopping cart. At checkout time, the books in
the shopping cart will be presented as order.

* The user can then complete the purchasing by making a transaction with a credit/debit
card.

1.2 Objectives
The main objective of the project is to create an online book store that allows users to
search and purchase a book online based on title, author and publisher. The selected books
are displayed in the cart and the user can order their books online through credit/debit
card payment. Using this website the user can purchase a book online instead of going out
to a book store and wasting time

Dept of CSE,SKIT 2022-2023 Page 8


Online CSE Book Store Management System

1.3 Functionalities provided by Online Book Store Management System

• Provides the searching facilities based on various factors such as books, customer, and
orders.

• It also manages the login details online for books details, order details, price details.

• It tracks all the information of books, orders etc.

• Shows the information and description of the books, publishers, shopping cart.

• To increase efficiency of managing the books.

• It deals with monitoring the information and transaction of order.

• Editing, adding, and updating of books is improved which results in proper resource
management of book store.

• Manage information of cart, books.

• Integration of all books of publishers

Dept of CSE,SKIT 2022-2023 Page 9


Online CSE Book Store Management System

Chapter 2
SYSTEM ANALYSIS
2.1 Existing System
In the existing problem the work is done only manually but in the proposed
system we have to computerize the work using the application.

• Lack of security of data.

• More man power.

• Time consuming.

• Consumes large volume of pare work.

• Needs manual calculations.

• No direct role for the higher officials.

2.2 Proposed system


The aim of the proposed system is to develop a system of improved facilities. The
proposed system can overcome all the limitations of the existing system. The system
provides proper security and reduces the manual work.

• Security of data.

• Ensure data accuracy.

• Proper control of the higher officials.

• Minimize manual data entry.

• Minimum time needed for the various processing.

• Greater efficiency.

• Better service.

• User friendly and interactive.

Dept of CSE,SKIT 2022-2023 Page 10


Online CSE Book Store Management System

2.3 System Requirements

2.3.1 Software Requirements


Operating System: Windows XP/Windows 7

Language: PHP

Back End: MYSQL Server

Browser: Any of Mozilla, Opera, Chrome etc

Software Tool Kit: XAMPP

2.3.2Hardware Requirements

Processor: Pentium III 630 MH

RAM: 128 MB

Hard Disk: 20 G

Dept of CSE,SKIT 2022-2023 Page 11


Online CSE Book Store Management System

CHAPTER 3
SYSTEM DESIGN
3.1 Introduction

The most creative and challenging face of the system development is System Design.It
provides the understanding and procedural details necessary for implementing thesystem
recommended in the feasibility study. Design goes through the logical andphysical stages of
development. In designing a new system, the system analyst musthave a clear
understanding of the objectives, which the design is aiming to fulfil. Thefirst step is to
determine how the output is to be produced and in what format. Second, input data and
master files must be designed to meet the requirements of the proposedoutput. The
operational phases are handled through program construction and testing.Design of a
system can be defined as a process of applying various techniques andprinciples for the
purpose of defining a device, a process or a system in sufficient detail to permit its physical
realization. Thus, system designis a solution to “how to” approach to the creation of a new
system. Thus,Important phase provides the understanding and the procedural
detailsNecessary for implementing the system recommended in the feasibility study.The
design step provides a data design, architectural design, and a proceduraldesign .

3.2 User Interface Design


User Interface Design is concerned with the dialogue between a user and the computer.
It is concerned with everything from starting the system or logging into the system to
the eventually presentation of desired inputs and outputs. The overall flow of screens
and messages is called a dialogue.

The following steps are various guidelines for User Interface Design
1) The system user should always be aware of what to do next.

Dept of CSE,SKIT 2022-2023 Page 12


Online CSE Book Store Management System

2) The screen should be formatted so that various types of information, instruction and
messages always appear in the same general display area.

3) Message, instructions, or information should be displayed long enough to allow the


system user to read them.

4) Use display attributes sparingly.

5) Default values for fields and answers to be entered by the user should be specified.

6) A user should not be allowed to proceed without correcting an error.

7) The system user should never get an operating system message or fatal error.

Chapter 4

Dept of CSE,SKIT 2022-2023 Page 13


Online CSE Book Store Management System

DATABASE RELATIONSHIP
4.1 SCHEMA

4.2 E-R DIAGRAM

Dept of CSE,SKIT 2022-2023 Page 14


Online CSE Book Store Management System

An Entity Relationship Diagram (ERD) shows the relationships of entity sets stored in a
database. An entity in this context is an object, a component of data. An entity set is a
collection of similar entities.

These entities can have attributes that define its properties. By defining the entities, their
attributes, and showing the relationships between them, an ER diagram illustrates the
logical structure of databases. ER diagrams are used to sketch out the design of a database.

Fig:4.2- Entity Relationship Diagram of Employee Leave Management System

4.3 LIST OF TABLES WITH ATTRIBUTES AND CONSTRAINTS

Dept of CSE,SKIT 2022-2023 Page 15


Online CSE Book Store Management System

Dept of CSE,SKIT 2022-2023 Page 16


Online CSE Book Store Management System

Dept of CSE,SKIT 2022-2023 Page 17


Online CSE Book Store Management System

CHAPTER 5

SYSTEM IMPLEMENTATION

5.1 Introduction
System implementation is the important stage of project when the theoretical design is
tuned into practical system. The main stages in the implementation are as follows:

* Planning

* Training

* System testing and

* Change over planning

Planning is the first task in the system implementation. At the time of implementation of
any system people from different departments and system analysis involve. They are
confirmed to practical problem of controlling various activities of people outside their own
data processing departments. The line managers controlled through an implementation
coordinating committee. The committee considers ideas, problems and complaints of user
department.

5.2 Tool and Technology


5.2.1 PHP

PHP is a server-side scripting language designed for web development but also used as a
general-purpose programming language. Originally created by Ramus Lerdor1994, the PHP
reference implementation is now produced by The PHP Group. PHP originally stood for
Personal Home Page, but it now stands for the recursive acronym PHP: Hypertext Pre-
processor. PHP code may be embedded into HTML code, or it can be used in combination
with various web template systems, web content management system and web
frameworks. PHP code is usually processed by a PHP interpreter implemented as a module
in the web server or as a Common Gateway Interface (CGI) executable.

5.2.2 Apache

Dept of CSE,SKIT 2022-2023 Page 18


Online CSE Book Store Management System

The Apache HTTP Server, colloquially called Apache, is free and open-source cross platform
web server software, released under the terms of Apache License 2.0. Apache is developed
and maintained by an open community of developers under the auspices of the Apache
Software Foundation. The Apache HTTP server is a software (or program) that runs in the
background under an appropriate operating system, which supports multi-tasking, and
provides services to other applications that connect to it, such as client web browsers. It
was first developed to work with Linux/Unix operating systems, but was later adapted to
work under other systems, including Windows and Mac. The Apache binary running under
UNIX is called HTTP (short for HTTP daemon), and under win32 is called Apache.exe.

5.2.3 MySQL
MySQL is a freely available open-source Relational Database Management System (RDBMS)
that uses Structured Query Language (SQL). Its name is a combination of "My", the name of
cofounder Michael Wideness’s daughter, and "SQL", the abbreviation for Structured Query
Language. SQL is the most popular language for adding, accessing, and managing content in
a database. It is most noted for its quick processing, proven reliability, ease, and flexibility
of use. MySQL is an essential part of almost every open-source PHP application. Good
examples for PHP & MySQL based scripts are WordPress, Joomla, Magneto and Drupal. One
of the most important things about using MySQL is to have a MySQL specialized host.

5.2.4 Xampp server


XAMPP is a free and open-source cross-platform web server solution stack

Package developed by Apache Friends, consisting mainly of the Apache

Server, MariaDB database, and interpreters for script written in the PHP

and Perl programming languages. ince most of the servers use XAMPP it

makes transitioning easier.

Dept of CSE,SKIT 2022-2023 Page 19


Online CSE Book Store Management System

CHAPTER 6

SYSTEM TESTING
The purpose of testing is to discover errors. Testing is the process of trying to discover
every conceivable fault or weakness in a work product. It provides a way to check the
functionality of components, sub-assemblies, assemblies and/or a finished product It is the
process of exercising software with the intent of ensuring that the Software system meets
its requirements and user expectations and does not fail in an unacceptable manner. There
are various types of tests. Each test type addresses a specific testing requirement.

6.1 Unit testing:

Unit testing involves the design of test cases that validate that the internal program logic is
functioning properly, and that program inputs produce valid outputs. All decision branches
and internal code flow should be validated. It is the testing of individual software units of
the application .it is done after the completion of an individual unit before integration. This
is a structural testing, that relies on knowledge of its construction and is invasive. Unit tests
perform basic tests at component level and test a specific business process, application,
and/or system configuration. Unit tests ensure that each unique path of a business process
performs accurately to the documented specifications and contains clearly defined inputs
and expected results.

6.2 Integration testing:

Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic
outcome of screens or fields. Integration tests demonstrate that although the components
were individually satisfaction, as shown by successfully unit testing, the combination of
components is correct and consistent. Integration testing is specifically aimed at exposing
the problems that arise from the combination of components.

Dept of CSE,SKIT 2022-2023 Page 20


Online CSE Book Store Management System

6.3 Functional testing

Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user
manuals.

Functional testing is centred on the following items:

Valid Input: identified classes of valid input must be accepted.

Invalid Input: identified classes of invalid input must be rejected.

Functions: identified functions must be exercised.

Output: identified classes of application outputs must be exercised.

Systems/ Procedures: interfacing systems or procedures must be invoked. Organization and


preparation of functional tests is focused on requirements, key functions, or special test
cases. In addition, systematic coverage pertaining to identify Business process flows; data
fields, predefined processes, and successive processes must be considered for testing.
Before functional testing is complete, additional tests are identified and the effective value
of current tests is determined.

6.4 System Testing:

System testing ensures that the entire integrated software system meets requirements.
It tests a configuration to ensure known and predictable results. An example of system
testing is the configuration-oriented system integration test. System testing is based on
process descriptions and flows, emphasizing pre-driven process links and integration points.

6.5 White Box Testing

White Box Testing is a testing in which in which the software tester has knowledge of the
inner workings, structure and language of the software, or at least its purpose. It is purpose.
It is used to test areas that cannot be reached from a black box level.

Dept of CSE,SKIT 2022-2023 Page 21


Online CSE Book Store Management System

6.6 Black Box Testing:

Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of
tests, must be written from a definitive source document, such as specification or
requirements document, such as specification or requirements document. It is a testing in
which the software under test istreated, as a black box you cannot “see” into it.

Database connection code in PHP:

Admin
<?php

$title = "Administration section";

require _once "./template/header.php";

?>

Dept of CSE,SKIT 2022-2023 Page 22


Online CSE Book Store Management System
<form class="form-horizontal" method="post" action="admin_verify.php">

<div class="form-group">

<label for="name" class="control-label col-md-4">Name</label>

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

<input type="text" name="name" class="form-control">

</div>

</div>

<div class="form-group">

<label for="pass" class="control-label col-md-4">Pass</label>

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

<input type="password" name="pass" class="form-control">

</div>

</div>

<input type="submit" name="submit" class="btn btn-primary">

</form>

<?php

require_once "./template/footer.php";

Admin_verify

<?php

session_start();

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

echo "Something wrong! Check again!";

exit;

Dept of CSE,SKIT 2022-2023 Page 23


Online CSE Book Store Management System
}

require_once "./functions/database_functions.php";

$conn = db_connect();

$name = trim($_POST['name']);

$pass = trim($_POST['pass']);

if($name == "" || $pass == ""){

echo "Name or Pass is empty!";

exit;

$name = mysqli_real_escape_string($conn, $name);

$pass = mysqli_real_escape_string($conn, $pass);

$pass = sha1($pass);

// get from db

$query = "SELECT name, pass from admin";

$result = mysqli_query($conn, $query);

if(!$result)

echo "Empty data " . mysqli_error($conn);

exit;

$row = mysqli_fetch_assoc($result);

if($name != $row['name'] && $pass != $row['pass']){

echo "Name or pass is wrong. Check again!";

$_SESSION['admin'] = false;

exit;

Dept of CSE,SKIT 2022-2023 Page 24


Online CSE Book Store Management System
if(isset($conn)) {mysqli_close($conn);}

$_SESSION['admin'] = true;

header("Location: admin_book.php");

XAMPP –

XAMPP is a free and open-source cross-platform web server solution stack package
developedbyApache Friends, consisting mainly of the Apache HTTP Server, MariaDB
database, and interpretersforscripts written in the PHP and Perl programming languages.
Since most actual web server deploymentsusethe same components as XAMPP, it makes
transitioning from a local test server to a live server possible

Table of customer:

Dept of CSE,SKIT 2022-2023 Page 25


Online CSE Book Store Management System

Table for Address:

CHAPTER 7 :Result and ScreenShots


Dept of CSE,SKIT 2022-2023 Page 26
Online CSE Book Store Management System

Welcome page of the project

Admin login page of the project

Dept of CSE,SKIT 2022-2023 Page 27


Online CSE Book Store Management System

List of all the Books

List of All Publishers

Dept of CSE,SKIT 2022-2023 Page 28


Online CSE Book Store Management System

Publishers Book

Book details

Dept of CSE,SKIT 2022-2023 Page 29


Online CSE Book Store Management System

My Cart

Check out pages

Dept of CSE,SKIT 2022-2023 Page 30


Online CSE Book Store Management System

Purchasing a Book

Adding a New Book

CHAPTER 8
Dept of CSE,SKIT 2022-2023 Page 31
Online CSE Book Store Management System

CONCLUSION AND FUTURE ENHANCEMENTS

The online book store management system is an attempt to overcome the present in
efficient and time-consuming process of locating reserving and purchasing quality reading
materials available in the shop. Through automated book shop solution, provide an easy
way of searching reserving and purchasing of books. It’s worth analysing and identifying the
benefits as it would directly influence the productivity of the shop. This software can be
easily implemented under various situations. Any education institute can make use of it for
providing information about author, content of the available books in the library.
Modifications can be easily done according to the requirements and when necessary. it can
be used in any type of Book store for managing all the sales and purchased activities.

Dept of CSE,SKIT 2022-2023 Page 32


Online CSE Book Store Management System

BIBILIOGRAPHY

[1] Database Systems Models, Languages,

Design and Application Programming,

Ramez Elmasri and B.Navathe,

7 th edition, 2017,pearson.

[2] Database Management systems.Ramakrishnan, and Gehrke, 3 rd edition, 2014

http://www.w3schools.com/

http://www.phppoint.com/

http://www.mysqltutorial.com/

http://www.html.com/

Dept of CSE,SKIT 2022-2023 Page 33


Online CSE Book Store Management System

Dept of CSE,SKIT 2022-2023 Page 34


Online CSE Book Store Management System

Dept of CSE,SKIT 2022-2023 Page 35

You might also like