Professional Documents
Culture Documents
1.1 Traditional File System: Pros
1.1 Traditional File System: Pros
CHAPTER 1
INTRODUCTION
• File processing cost less and can be more speed than database.
• File processing design approach was well suited to mainframe hardware and batch input.
• Companies mainly use file processing to handle large volumes of structured data on a regular basis
• It can be more efficient and cost less than DBMS in certain situations.
• Design is simple.
• Customization is easy and efficient.
CONS:
• Data redundancy and inconsistency.
• Difficulty in accessing data.
• Data isolation – multiple files and formats.
• Integrity problems
A database management system (DBMS) is a computerized system that enables users to create and maintain
a database. The DBMS is a general-purpose software system that facilitates the processes of defining,
constructing, manipulating, and sharing databases among various users and applications. Defining a
database involves specifying the data types, structures, and constraints of the data to be stored in the
database. The database definition or descriptive information is also stored by the DBMS in the form of a
database catalogue or dictionary; it is called meta-data. Constructing the database is the process of storing
the data on some storage medium that is controlled by the DBMS. Manipulating a database includes
functions such as querying the database to retrieve specific data, updating the database to reflect changes
in the mini world, and generating reports from the data. Sharing a database allows multiple users and
programs to access the database simultaneously.
Table no.1.1 indicates the different sectors to which DBMS can be applied for easy access of data,
to avoid integrity problems and also to overcome data redundancy and inconsistency. To handle
large volumes of data in a structured manner on a regular basis.
The file based data management systems contained multiple files that were stored in many different
locations in a system or even across multiple systems. Because of this, there were sometimes multiple
copies of the same file which lead to data redundancy.
This is prevented in a database as there is a single database and any change in it is reflected immediately.
Because of this, there is no chance of encountering duplicate data.
2.Data Integrity
Data integrity means that the data is accurate and consistent in the database. Data Integrity is very important
as there are multiple databases in a DBMS. All of these databases contain data that is visible to multiple
users. So it is necessary to ensure that the data is correct and consistent in all the databases and for all the
users.
3.Data Security
Data Security is vital concept in a database. Only authorised users should be allowed to access the database
and their identity should be authenticated using a username and password. Unauthorised users should not
be allowed to access the database under any circumstances as it violates the integrity constraints.
4.Privacy
The privacy rule in a database means only the authorized users can access a database according to its privacy
constraints. There are levels of database access and a user can only view the data he is allowed to. For
example - In social networking sites, access constraints are different for different accounts a user may want
to access.
Database Management System automatically takes care of backup and recovery. The users don't need to
backup data periodically because this is taken care of by the DBMS. Moreover, it also restores the database
after a crash or system failure to its previous condition.
6.Data Consistency
Data consistency is ensured in a database because there is no data redundancy. All data appears consistently
across the database and the data is same for all the users viewing the database. Moreover, any changes made
to the database are immediately reflected to all the users and there is no data inconsistency.
Fig 1.1 indicates the components of DBMS like users,database application,DBMS and database
• Users: Users may be of any kind, such as data base administrators, system developers or
database users.
• Database application: Database application may be Departmental, Personal,
Organizational and /or Internal
• DBMS: Software that allows users to create and manipulate database access
• Database: Collection of logical data as a single unit.
Books, fiction books, autobiography, classic books,…The user can buy any selected books, and
also can rent a book if available.
1.7 SCOPE
In the system, entitled “Books of Bliss” Developed a well-organized book borrowing system So,the interest
of the user matches with any of the book listed with the system. It aims to provide a transparency in
borrowing process. The system provides a feature that can easily manage user’s information, book details
and manage borrowing transactions. The system provides “Book of Bliss” provides easy experience for
shopping. The user will have a different categories like story Books, fiction books, autobiography, classic
books,…The user can buy any selected books, and also can rent a book if available. Admin can able to add
authors, new books, available rental books. Admin able to see and manage request received from the rent
books.
All the information will be saved safely in the database. Any information needed can be retrieved easily
without any errors. The system is user friendly and error free. The data is maintained and processed quickly
providing user flexibility. The application developed is responsive and can be accessed from laptops,
mobiles and other variable screen devices rendering user comfort to use the application. Here, we have
apache web server which provides a server for clients where the requests of the clients is satisfied, WAMP
is used as database to store the data that is obtained from clients. The basic objective of web server is to
store, process and deliver web pages to the users. This intercommunication is done using Hypertext Transfer
Protocol (HTTP). The database that is used is MySQL, it is an open-source relational database management
system. It creates a database for storing manipulating data, defining the relationship of each table. Clients
can make requests by typing specific SQL statements on MySQL. The server application will respond with
the requested information and it will appear on the clients’ side.
CHAPTER 2
REQUIREMENT ANALYSIS
CHAPTER 3
SOFTWARE REQUIREMENT SPECIFICATIONS
3.1 WAMP
The software that we used here is WAMP application, it is a stack of software, which includes Apache
distributions used to develop and test website locally before its deployment on the internet. WAMP is an
abbreviation for cross-platform, Apache, MySQL, PHP and Perl, and it allows you to build WordPress
site offline, on a local web server on your computer. WAMP also provides support for creating and
manipulating databases in MariaDB and SQLite among others. Once WAMP is installed, it is possible to
treat a localhost like a remote host by connecting using an FTP client. Using a program like FileZilla has
many advantages when installing a content management system (CMS) like WordPress It is also possible
to connect to localhost via FTP with an HTML editor.
3.2 MySQL
3.3 PHP
PHP Hypertext Preprocessor is a widely-used open source general-purpose scripting language that is
Especially suited for web development and can be embedded into HTML . It is used to manage dynamic
content, databases, session tracking, even build entire e-commerce sites. Originally designed to create
dynamic web pages, PHP now focuses mainly on server side scripting and it is similar to other server-side
scripting languages that provide dynamic content from a web server to a client, such as as ASP.NET, Sun
Micro Systems, and mod perl. PHP has also attracted the development of many software frameworks that
provide building blocks and a design structure to promote rapid application development (RAD).
3.4 APACHE
Apache HTTP Server is a free and open-source web server that delivers web content through the internet.
It is commonly referred to as Apache and after development, it quickly became the most popular HTTP
client on the web. Although we call Apache a web server, it is not a physical server, but rather a software
that runs on a server. Its job is to establish a connection between a server and the browsers of website
visitors (Firefox, Google Chrome, Safari, etc.) while delivering files back and forth between them (client-
server structure).
3.5 SUBLIME
Sublime Text is a shareware cross-platform source code editor with a Python application programming
interface (API). It natively supports many programming languages and markup languages, and functions
can be added by users with plugins, typically community-built and maintained under free-software licenses.
CHAPTER 4
An Entity–relationship model describes the structure of a database with the help of a diagram, which is
known as Entity Relationship Diagram . An ER model is a design or blueprint of a database that can later
be implemented as a database. The main components of E-R model are: entity set and relationship set.
Fig No.4.1-Represents the ER Diagram of the relational database that helps in understanding the
relationships between the entities and how they are related to each other
It is also known as a context diagram. It’s designed to be an abstraction view, showing the system as a
single process with its relationship to external entities. It represents the entire system as a single bubble
with input and output data indicated by incoming/outgoing arrows. As you see, when you build the
levels of data flow diagrams, the connections of the transactions and data also broadens and gets more
specific.
Fig No.4.2-Represents the data flow diagram at level 0 of checking validity of login,register page and
user home page
Fig No.4.4- Represents data flow diagram at level 1 of book of bliss this procedures require
information from which books can be located.
4.3 TABLES
4.3.1Register table
4.3.4Author table
CHAPTER 5
IMPLEMENTATAION
5.2 CODING
<html lang="en">
<head>
<meta charset="utf-8">
<title>Book of Bliss</title>
<!-- Responsive-->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
</head>
<?php
include ('include/header.php');
?>
<section class="slider_section">
<div class="carousel-inner">
<div class="container">
<h2>Login Here</h2>
</div>
<div class="about">
<div class="container"
<div class="col-md-6">
<h3>Login to Bookies</h3>
<hr>
<div class="text-center">
</div>
<br><br>
</form>
</div></div>
<br>
<center>
</center>
<br>’
</div>
</div>
</div>
<div class="row border">
<div class="col-xl-7 col-lg-7 col-md-12 col-sm-12">
<div class="about-box">
<p> We create a set of learning experiences across creative & intellectual pursuits by partnering
with the best in the business.We bring these learning experiences to communicate around Book of
Bliss libraries.We are working towards bringing our experiences to the web and we strive to
upload this prestige by serving our customers better</p>
</div>
</div>
<div class="col-xl-5 col-lg-5 col-md-12 col-sm-12">
<div class="about-box">
<figure><img src="images/about.png" alt="img" /></figure>
</div>
</div>
</body>
</html>
<div class="loader_bg">
</div>
<?php
include ('include/header.php');
?>
<div class="carousel-inner">
<div class="container">
</div>
</div>
</div>
</div>
</section> -->
<div class="about">
<div class="container">
<div class="row">
<div class="aboutheading">
</div>
</div>
</div>
<?php
include('include/conn.php');
$data =mysqli_query($conn,$sql);
$total=mysqli_num_rows($data);
if($total !=0){
while($row=mysqli_fetch_assoc($data)){
?>
Shop Now</button>
</div>
include_once 'include/conn.php';
<?php
include_once 'include/conn.php';
$result = mysqli_query($conn,"SELECT * FROM addbook WHERE id='" . $_GET['id'] . "'");
$row= mysqli_fetch_array($result);
?>
<?php
if(isset($_POST['submit'])){
//getting text data from the fields
$id = $row['id'];
$bookname = $row['bookname'];
$authorname = $row['authorname'];
$category = $row['category'];
$user=$_POST['user'];
$sub=$_POST['sub'];
$insert_product = "insert into subscribe (id,bookname,authorname,category,user,sub)
VALUES ('$id','$bookname','$authorname','$category','$user','$sub')";
$run_c=mysqli_query($conn,$insert_product);
header("location:viewSubscribe.php");
}
else{
echo "Something went wrong!";
}
?>
<?php
$i=0;
while($row = mysqli_fetch_array($result)) {
if($i%2==0)
$classname="even";
else
$classname="odd";
?>
<td style="text-align: center"><?php echo $row["id"]; ?></td>
<td style="text-align: center"><?php echo $row["bookname"]; ?></td>
<?php
$select=mysql_query("SELECT addbook.id,addbook.bookname, addbook.name, subscribe.user
FROM addbook
INNER JOIN subscribe ON addbook.id=subscribe.id;");
while($row1=mysql_fetch_array($select)){
$name=$row1['bookname'];
$id=$row1['id'];
$bname = $row1['name'];
?>
<tr>
<td><?php echo $id;?></td>
<td width="300">
<?php echo $user;?>.
</td>
<td><?php echo $name;?></td>
<td width="300">
<a href="download.php?filename=<?php echo $bname;?>"><button class="btn-sm btn-
success">Read online</button></a>
</td>
</tr>
<?php }?>
</table><?php
$conn=mysql_connect("localhost","root","") or die(mysql_error());
$sdb=mysql_select_db("bookofbliss",$conn) or die(mysql_error());
?>
5.2.10 MYCART
<?php
if(isset($_SESSION['user']))
{
$pt=0;
$user=$_SESSION['user'];
$sql="select * from cart where user='$user'";
$data =mysqli_query($conn,$sql);
$total=mysqli_num_rows($data);
if($total !=0){
while($row=mysqli_fetch_assoc($data)){
$pt=$pt+$row['price'] ;
?>
<tr>
<td><img src="<?php echo $row['img'] ?> " alt="" height="150" width="150" ></td>
<td >
<h6 style="font-weight:600;letter-spacing:2px;"><span class="pull-right"><?php echo $row['dt']
?></span></h6>
<h4 style="font-weight:500;letter-spacing:2px;font-size:25px;font-family:tahoma"><?php echo
$row['bookname'] ?></h4>
<h6 style="font-weight:600;letter-spacing:2px;color:grey"><?php echo $row['author'] ?></h6>
<h5 style="font-weight:700;letter-spacing:2px;color:green;font-size:20px">
<?php
if(isset($_SESSION['user']))
{ $user=$_SESSION['user'];
$sql1="select * from deliveryaddress where phone='$user'";
$data1 =mysqli_query($conn,$sql1);
$row1=mysqli_fetch_array($data1);
if($row1){
?>
<br>
<b>ORDER SUMMARY </b>
<hr>
<h4 style="font-weight:800;letter-spacing:2px"><?php echo $row1['fullname'] ?></h4>
<h5 style="font-weight:500;letter-spacing:2px;color:grey"><?php echo $row1['address1']
?></h5>
<h5 style="font-weight:500;letter-spacing:2px;color:grey"><?php echo $row1['address2']
?></h5>
<h5 style="font-weight:700;letter-spacing:2px;color:green"> <?php echo $row1['city'] ?>, <?php
echo $row1['pincode'] ?> </h5>
<?php echo $row1['phone'] ?>
<h1><br></h1>
<?php
?>
<hr>
<?php
$pt=0;
$data2 =mysqli_query($conn,$sql2);
$total2=mysqli_num_rows($data2);
if($total2 !=0){
while($row2=mysqli_fetch_assoc($data2)){
$pt=$pt+$row2['price'] ;
$i=0;
?>
<h6 style="font-weight:600;letter-spacing:2px;"><span class="pull-right"><?php echo $row2['dt']
?></span></h6>
<h4 style="font-weight:500;letter-spacing:2px;font-size:25px;font-family:tahoma"><?php echo
$row2['bookname'] ?></h4>
<h6 style="font-weight:600;letter-spacing:2px;color:grey"><?php echo $row2['author'] ?></h6>
<h5 style="font-weight:700;letter-spacing:2px;color:green;font-size:20px">
<span class="fa fa-rupee"></span><input type="text " value="<?php echo $row2['price'] ?>"
readonly="readonly" style="border:none" >
</h5>
<?php } ?>
<hr>
<b style="font-size:24px;color:orange">TOTAL PAYBLE : <span class="fa fa-inr" ></span>
<?php echo $pt ?> </b>
<br clear="all">
<br>
<div class="button_section" > <a class=" btn btn-success" href="delete.php?x=<?php echo $user
?>"><span class="btn btn-success">Continue</span></a> </div>
<h2><br></h2>
<?php
}
5.2.12 PAYMENT
<?php
include ('include/header.php');
?>
<!-- end header -->
<!-- about -->
<div class="about-bg">
<div class="container">
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12">
<div class="abouttitle">
<h2>PAYMENT METHOD</h2>
</div>
</div>
</div>
</div>
</div>
<div class="about">
<div class="container">
<div class="col col-lg-3"></div>
<div class="col col-lg-5" style="background:#fff">
<h3>PAYMENT</h3>
<hr>
5.2.13 ADMIN
<h3 class="font-weight-bold">Welcome Admin</h3>
</div>
</div>
</div>
</div>
<div class="col-12 grid-margin stretch-card">
<div class="card">
<div class="card-body">
<h4 class="card-title">View Proflie</h4>
<table id="customers">
<tr>
<th style="text-align: center">ID</th>
<th style="text-align: center">admin Email</th>
<th style="text-align: center">password</th>
<th style="text-align: center">Update </th>
</tr>
<?php
$i=0;
while($row = mysqli_fetch_array($result)) {
if($i%2==0)
$classname="even";
else
$classname="odd";
?>
<td style="text-align: center"><?php echo $row["id"]; ?></td>
<td style="text-align: center"><?php echo $row["email"]; ?></td>
<td style="text-align: center"><?php echo $row["password"]; ?></td>
<td style="text-align: center"><a href="updatepassword.php?id=<?php echo $row["id"];
?>">Update</td>
</tr>
<?php
$i++;
}
?>
$i=0;
while($row = mysqli_fetch_array($result)) {
if($i%2==0)
$classname="even";
else
$classname="odd";
?>
</html>
5CHAPTER 6
SNAPSHOTS AND RESULTS
The below represents the home dashboard page of book of bliss website.
Add category,old/new books,price of the book ,quantity ,description of the book and book file.
CHAPTER 7
TESTING
testing method in which the functionalities of software applications are tested without having knowledge
of internal code structure, implementation details and internal paths. Black Box Testing mainly focuses on
input and output of software applications and it is entirely based on software requirements and
specifications. It is also known as Behavioral Testing. Black box testing gives abstraction from code and
focuses on testing effort on the software system behavior .Black Box testing attempts to find out errors in
the following categories:
• Guarantee that all independent paths with in a module has been exercised at least once………Basis
path testing.
• Exercise all logical decisions on their true and false sides……condition testing.
• Execute all loops at their boundaries and within their operation bounds….loop testing.
In the phone number field we have to enter the vaild 10 number numeric digits in the first case in the phone
number field if we enter as ABC it shows invalid . In the second test case if we enter as 111 a 3 digit number
it shows invalid and in the last test case we have given a 10 digit number 9767544267 it’s a valid
In the email field we have to enter the vaild email with using special character in the first case in the email
field if we enter as MIKE it shows invalid . In the second test case if we enter as MIKE123 it shows invalid
and in the last test case we have given as mike@gmail.com it’s a valid
In the password field we have to enter a valid password should contain at least 8 characters—the more
characters, the better. A mixture of both uppercase and lowercase letters.A mixture of letters and
numbers. Inclusion of at least one special character, e.g., ! @ # ? ]
The project “Book of Bliss” was successfully designed and is tested for accuracy and quality. During this
project we have accomplished all the objectives and this project meets the needs of the organization. The
users will consume less amount of time when compared to manual paper work through the automated
system. The system will take care of all the servicing activity in a quick manner. Data storing is easier.
This system will provide the serving activity in quick and easy manner. It will consume less amount of
time as it is based on automatic system. This project helps users to save a lot of time in searching for new
books and to rent books through our website. Our project provides users to get register from anywhere
and anytime
BIBLIOGRAPHY
[1]www.w3schools.com
[2]www.mySql.com
[3]www.apach.com
[4]www.php.net
[5]www.phptpoint.com
[6]www.phpgurukul.com
[7]Html & CSS textbook by JON DUCKETT
[8]MYSQL textbook by PAUL DUBOIS