Online Book Store Report 2
Online Book Store Report 2
I COLLEGE OF COMMERCE
                   DHARWAD
PROJECT REPORT ON
            “ONLINEBOOK STORE”
SUBMITTED BY
           DEPARTMENT OF B.C.A(BACHELOR OF
               COMPUTER APPLICATIONS)
                      2019-2020
CERTIFICATE
Examiners                                              Co-ordinator
1………………..
2………………..
                       ACKNOWLEDGEMENT
Date:                                                      Signature
Place:                                                    ASHICA SHILABHADRA
PRIYANKA GAJIPUR
CONTENTS
1. INTRODUCTION……………………………………………………….1-3
1.1 Problem Definition
1.2 Project Overview
1.3 Hardware Specification
1.4 Software Specification
2. LITERATURE SURVEY……………………………………...……….4-5
2.1 Existing System
2.2 Proposed system
2.3 Feasibility Study
5. Testing…………………………………………….…………………………49-54
5.1 Details of testing methodologies.
5.2 Sample Testing Used
6. Result / Screenshonts……………………………….………………………..…55-58
 6.1 Online book store Login Form
6.2 Online book store admin Home Page
 6.3Online book store admin insert page
6.4 Online book store admin view page
 6.5 Online book store admin edit page
 6.6 Online book store admin update page
7. Conclusion…………………………………………………………………………………59
8. References ………………………
                                  INTRODUCTION
An online book store is a virtual store on the Internet where customers can browse the catalog
and select books of interest. The selected books may be collected in a shopping cart. At
checkout time, the items in the shopping cart will be presented as an order. At that time, more
information will be needed to complete the transaction. Usually, the customer will be asked
to fill or select a billing address, a shipping address, a shipping option, and payment
information such as credit card number. An e- mail notification is sent to the customer as
soon as the order is placed.
. The reason why we selected online Bookstore web service is everybody walking down the
street has some idea about bookstores. The objective of this project is to develop an e- book
store where books can be bought from the comfort of home through the Internet.
Shopping for books online helps you find the best possible price for just about any book you
want. If customers in the market are for rare, collectible or autographed books, its much
cheaper and faster to search online then would be
to call up local used and independent book stores that carry these types of items.
Moreover, this system is designed for the particular need of the company to carry out
operations in a smooth and effective manner.
1.2PROJECT OVERVIEW
The project overview automates the details of the various books and as well as their authors.
The project also automates theregistered usersand even provides offers for the users.
The project is developed to help the customers to order the book online rather than going to
merchants and buy the books and it also helps to provide the home delivery services for the
customers and also provides payment system in safe and secure manner and it also provides
different offers to the customers
2.LITERATURE SURVEY
2.1 Existing System:
In the present system the users have to visit the book stores, libraries and merchantsto buy
the books and the merchants have to do a lot of paper works to keep record of the books and
authors and also the bills.
      Lack of security of data.
      More man power.
      Needs manual calculations.
 Do the proposed equipments have the technical capacity to hold the data required to
Are there technical guarantees of accuracy, reliability, ease of access and data
security
                   It is based on the financial concept such as is the online book project has
sufficient budget to develop the proposed system or is it cost effective. The proposed system
will save lots of paper work and Facilitate magnetic record keeping thereby reducing the
costs incurred on above heads.
               This test of feasibility asks if the system will work when it is developed and is
the current functional methods acceptable to the user. Since the inception of Internet, it is
continuously growing in leaps and bounds, as more people are arriving at the conclusion that
they cannot escape from it and in order to keep up, they have to participate in that.
                   3. SYSTEM ANALYSIS AND DESIGN
3.1 REQUIREMENT SPECIFICATION
3.1.1 Introduction:
This specification is used to specify the requirements for the initial implementation of the
system and update the system in future. The software requirement bridges the gap between
client or the user and the system developer. This document describes the user need
accurately.
Purpose:
           This document will outline all of the functions, capabilities and requirements for
developing an application for managing accurate billing statements to customers, managing
the orders of books and handling the customer packages and payments.
Scope:
3.1.2Overall Description:
This section will give an overview of the whole system. The system will be explained in the
context to show how the system interacts with others and introduce the basic functionality of
it. At last, the constraints and assumptions for the system will be presented.
Product Perspective:
The application should provide quick access to the records maintained and must reveal the
important reviews about the advertisements and orders of magazines so that the growth can
be easily compared and should provide with the various reports showing the related details so
that the important decisions could be taken easily.
The transactions related to advertisement and orders are maintained manually at present along
with maintaining the accounts of the customers and distributor management. The billing
system of the advertisement and orders are maintained manually. All these are to be
automated and an application is required to relate all of them relatively and logically so that
the current system can be replaced and accepted without major changes and problems.
3.1.3 User interface:
Theuserinterfaceallowstheuserstoremotely          accessthesystemviaseveral         applications.
Userswillbeabletousetheservicethroughapplicationssuchas MozillaFirefox, Microsoft Internet
Explorer,etc. Allow theusertoaccessthe information fast and easilyfrom remotelocations.
 .Compatibility:
       Portability:
Thesoftwareisextremelyportableinthesensethatitcanberunonany machine with a web-browser.
 Acceptance criteria:
Incommon the USERshouldbe familiar and musthave the knowledge ofwindows operating
system.Basic computer knowledge of using keyboard, mouse andcommonwindows
environment is required.
Theprimary                 useroftheapplicationistheadminwhomaintainsthesoftwareorproducthe
shouldknowaboutthedatapresentandthedatahewanttoview,sothathecanefficiently
usethefunctionoftheproposedsystem.ThesoftwareisGUI                  basedtoreducetheusernon-
friendliness towards thesoftware.
MODULES:
Administrator:
The administrator can add the details of customers and the advertisements the customer wants
to post, different types of advertisements like the categories of the advertisements, different
type of packages, payments and also maintained the order of the magazines by the distributor.
And he is the fully authenticated person for the entire system.
Doctor:
This module is used gives detailed description about doctors and access information about
patients details and their reports.
Patient:
         This module provide details about patients and their reports accessed by the doctors
and get appointments.
SpecificRequirements
ExternalInterfaceRequirements:
UserInterface: Accomplishes via mouse and keyboard input to the GUIbased forms.
Non-Functional Requirements:
Anon-functionalrequirementisa requirementthatspecifiescriteriathatcanbe used to judge the
operationof    asystem,rather     than    specific      behaviours.Thisshouldbe    contrasted
withfunctionalrequirementsthatdefine         specificbehaviourorfunctions.         Theplanfor
implementingnon-functionalrequirements is detailed in thesystemarchitecture.
      Theapplicationisavailablefromseverallocationsanditisaccessible24*7withthehelp
       ofinternet.
      Thecodeiseasilyunderstoodandreadbecauseofthestructureandcodingstyleofthe
       application.
      Various components are provided in order to improvethe performance at peak time.
THE PROCESS:
Processes
DATA FLOW:
Admin
                                                               ADD
  login                        Online book
      ADMIN                    store         BOOKS
                                                               VIEW
ADD
                                             CATEGORY
                                                               VIEW
                                                               ADD
                                             CUSTOMER
                                                               VIEW
PURCHASE ADD
                                                               VIEW
user:
        MEDIKART
USER     SYSTEM
ADD
PRODUCT
BUY
ADD
PURCHASE
UPDATE
                   CATEGORIES     VIEW
3.2.2 ER DIAGRAM
        An entity-relationship diagram is a data modeling technique that creates a graphical
representation of the entities, and the relationships between entities, within an information
system. An entity-relationship model (ERM) is an abstract and conceptual representation
of data. Entity-relationship modeling is a database modeling method, used to produce a type
of conceptual schema or semantic data model of a system, often a relational database, and its
requirements in a top-down fashion. Diagrams created by this process are called entity-
relationship diagrams, ER diagrams, or ERDs.
The first stage of information system design uses these models during the requirements
analysis to describe information needs or the type of information that is to be stored in
a database. The data modeling technique can be used to describe any ontology (i.e. an
overview and classifications of used terms and their relationships) for a certain area of
interest.
In the case of the design of an information system that is based on a database, the conceptual
data model is, at a later stage (usually called logical design), mapped to a logical data model,
such as the relational model; this in turn is mapped to a physical model during physical
design. Sometimes, both of these phases are referred to as "physical design".
Entity:
An entity is an object or concept about which you want to store information.An entity is a
real-world item or concept that exists on its own. The set of all possible values for an entity,
such as all possible customers, is the entity type. In an ER model, we diagram an entity type
as a rectangle containing the type name.
Weak Entity:
         A weak entity is an entity that must defined by a foreign key relationship with another
entity    as   it   cannot    be   uniquely    identified   by    its   own     attributes   alone.
Attribute:
Each entity has attributes, or particular properties that describe the entity. Most of the data in
a database consists of values of attributes. The set of all possible values of an attribute is
the attribute domain.In an ER model, an attribute name appears in an oval that has a line to
the corresponding entity box.
Key attributes:
          A key attribute is the unique, distinguishing characteristic of the entity. An attribute or
set of attributes that uniquely identifies a particular entity is a key. A key attribute in an ER
Diagram is represented by an oval that has a line inside it and a line to the corresponding
entity box. For example, an employee's social security number might be the employee's key
attribute.
Multivalued attribute:
          A multivalued attribute can have more than one value. We indicate this with a double
oval. For example, an employee entity can have multiple skill values.
Derived attribute:
Identifying relationship:
       Identifying relationship is denoted by double rhombus.
Composite Attribute:
       A composite attribute has multiple components and each component is atomic or
composite. We illustrate this composite nature in the ER model by branching off the
component attributes.
1
Total Participation:
     Total participation is represented by a double line.
ER DIAGRAM:
                              4.IMPLIMENTATION
4.1 LANGUAGES USED
     4.1.1 PHP-Details
            PHP originally stood for “Personal Home Page” and was released as a free, open
source project. Over time, the language was reworked to meet the needs of its users. In 1997,
PHP was renamed to the     current “PHP: Hypertext Preprocessor.”PHP is generally used as a
server-side scripting language; it is especially well-suited for creating dynamic web pages
and client-side GUI applications. . PHP generally runs on a web server, taking PHP code as
its input and creating web pages as output. The scripting language features integrated support
for interfacing with databases such as MySQL, which makes it a prime candidate for building
all manner of web applications, from simple personal web sites to complex enterprise-level
applications.
       Unlike HTML, which is parsed by a browser when a page loads, PHP is preprocessed
by the machine that serves the document (this machine is referred to as a server). All PHP
code contained with the document is processed by the server before the document is sent to
the visitor’s browser.PHP is a scripted language, which is another great advantage for PHP
programmers. 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 provides the complete source code for users to build,
customize and extend for their own use.Many programming languages require that you
compile files into machine code before they can be run, which is a time-consuming process.
Bypassing the need to compile means you’re able to edit and test code much more quickly
Because PHP is a server-side language, running PHP scripts on your local machine requires
installing a server on your local machine.
       PHP is free software released under the PHP License; however it is incompatible with
the GNU General Public License (GPL), due to restrictions on the usage of the term PHP. It
is a widely-used general-purpose scripting language that is especially suited for web
development and can be embedded into HTML. It generally runs on a web server, taking
PHP code as its input and creating web pages as output. It can be deployed on most web
servers and on almost every operating system and platform free of charge. PHP is installed on
more than 20 million websites and 1 million web servers.
Example
<?php
Echo “Hello Welcome to JSS”
?>
4.1.2 Usage
        PHP primarily acts as a filter, taking input from a file or stream containing text
and/or PHP instructions and outputs another stream of data; most commonly the output will
be HTML. It can automatically detect the language of the user. From PHP 4, the PHP 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’s principal focus is 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
Microsoft’s Active Server Pages, Sun Microsystems’ Java Server Pages, and mod_perl. 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, Symfony, CodeIgniter, and Zend Framework, offering features similar to other
web application frameworks.
       The LAMP architecture has 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 they may also refer to Python or Perl. As of April 2007, over
20 million Internet domains were hosted on servers with PHP installed, and PHP was
recorded as the most popular Apache module. Significant websites are written in PHP
including the user-facing portion of Face book, Wikipedia (Media Wiki), Yahoo!, My
Yearbook, Digg, Word press and Tagged. In addition to server-side scripting, PHP can be
used to create stand-alone, compiled applications and libraries, it can be used for shell
scripting, and the PHP binaries can be called from the command line.
       As with many scripting languages, PHP scripts are normally kept ashuman-readable
source code, even on production web servers. In this case, PHP scripts will be compiled at
runtime by the PHP engine, which increases their execution time. PHP scripts are able to be
compiled before runtime using PHP compilers as with other programming languages such as
C (the language PHP and its extensions are written in).
Code optimizers aim to reduce the computational complexity of the compiled code by
reducing its size and making other changes that can reduce the execution time with the
overall goal of improving performance. The nature of the PHP compiler is such that there are
often opportunities for code optimization, and an example of a code optimizer is the Zend
Optimizer PHP extension. Another approach for reducing overhead for high load PHP servers
is using PHP accelerators. These can offer significant performance gains by caching the
compiled form of a PHP script in shared memory to avoid the overhead of parsing and
compiling the code every time the script runs.
       The idea of using the Web as an application environment developed over time, with
each stage of technology serving as a springboard for new ideas. The first operational model
had the Web server simply serving up documents on request. In this environment, the content
doesn’t change unless a human author supplies a new version of a document.
       After HTTP protocol, the Web server came with a new specification called as
Common Gateway Interface (CGI). A CGI program is invoked by the Web server in response
to certain types of request. The program reads this and performs the application task and then
generates the HTTP response, and it is sent back to the requesting Web browser.
       A significant improvement came with JSP and its APIs. These related technologies
bring the all power of Java to the web server, with database connectivity, network access, and
multi-threaded operations and notably a different process model.
HTML
       The global publishing format of the Internet is HTML. It allows authors to use not
only text but also format that text with headings, lists, and tables, and to include still images,
video, and sound within text. Readers can access pages of information from anywhere in the
world at the click of a mouse-button. Information can be downloaded to the reader’s own PC
or workstation. HTML pages can also be used for entering data and as the front-end for
commercial transactions.
FEATURES OF HTML:
    HTML constructs are very easy to comprehend, and can be used effectively by
     anybody.
SQL Server is a Relational Database Management System (RDBMS) that runs exclusively
under the Windows operating system. One benefit of using Windows exclusively is that you
can send and receive E-mail messages based on SQL Server "events" and you can also let the
operating system handle login security. The data base is an organized collection of data. A
database management system (DBMS) such as Access, FileMaker Pro, Oracle or SQL Server
provides you with the software tools you need to organize that data in a flexible manner. It
includes facilities to add, modify or delete data from the database, ask questions (or queries)
about the data stored in the database and produce reports summarizing selected contents.
MySql is a multithreaded, multi-user SQL database management system (DBMS). The basic
program runs as a server providing multi-user access to a number of databases. Originally
financed in a similar fashion to the JBoss model, MySql was owned and sponsored by a
single for-profit firm, the Swedish company MySQLAB now a subsidiary of Sun Micro
system , which holds the copyright to most of the codebase.
Database Evolution
SQL was invented back in the 1960's by E.F. Cod of IBM. in order to increase data integrity
and reduce repetitive data. RDBMS systems didn't appear until the late 70's when Sybase and
Oracle introduced systems. These systems existed on mainframes at the time.
ANSI-SQL came to be in the 1980's. This was important because it meant that disparate
systems could communicate through an agreed set of standards. There are different levels of
ANSI-SQL compliance. Almost every major RDBMS today is entry level compliant,
including SQL Server 2000. Every RDBMS has its own flavour of SQL that complements
ANSI-SQL with proprietary elements. SQL Server's flavour of SQL is known as Transact
SQL (T-SQL).
                 SQL Server was originally a Sybase product. Microsoft bought the product
outright from Sybase and by version 7.0, the version prior to 2000, all the code had been
rewritten by Microsoft's programming gurus.
FEATURES OF SQL
        It is simple English like language and uses simple commands such as SELECT,
         CREATE, DROP etc.
        It is not having condition loops, variables and most of the commands are single line
         commands.
        To implement application logics, SQL has got extension language popularly called
         as PL/SQL (Procedural language of sql).
        One of the key features of sql server is the XML support. XML has
  Grown to be standard technology for organizations that share data on the web.
            Now with sql server 2000 XML documents can be retrieved directly from the
         database and it provides various ways to retrieve data in XML format.
          The entire SQL has been divided into 4 major categories.
           1. Data Manipulation Language.
           2. Data Definition Language.
           3. Transaction Control language.
           4. Data Control Language.
Security
View are basically used as a part of security, means in many organizations ,the end user will
never be given original tables & all data entry will be done with the help of views only. But
the data base administrator will be able to see everything because all the operations done by
the different users will come to the same table.
Queries
A query is a question or a request. With MySql, we can query a database for specific
information and have a record set returned.
Server name: Optional Specifies the Server to connect .Default values is localhost: 3306
Example
later use in the script. The “die” part will be executed if the connection fails:
Closing a Connection
The connection will be closed automatically when the script ends. To close
the connection before, use the mysql_close() function.
MySql Functions
2) Now to create a new table enter your table name and the number of fields in the table, then
click the 'Go' Button.
3) The next step is to create the fields, just enter values for each field name, type, length of
the field, null option and mention whether it is a primary key or not. Then click the 'Save'
button to complete your table creation.
Note the size of the 'wp_bad_behaviour_log' table - this is one to be emptied in this example.
   Now     tick   the   box    to   the   left   of   the   table   you    wish   to   empty.
Note: your table may well have a different name, and unless you have been told otherwise, do
NOT empty a table that is used by the Word Press core.
From the drop-down menu, highlight and click the 'Empty' option.
You           will          now            get          a          confirmation        screen.
This is your last chance to check - there is no 'UNDO' function here !
Click 'Yes' and you will be returned to viewing all the tables in your install.
WAMP SERVER
WAMP Server
AMP is an acronym for Apache (an HTTP Server), MySQL (a relational database) and PHP
(a server-side programming platform). These are industrial-strength, open-source software
that collectively can be used to develop, deploy and run web applications. Depending on the
operating platform, we have:
      WAMP: Windows-Apache-MySQL-PHP
      LAMP: Linux-Apache-MySQL-PHP
      MAMP: Mac-Apache-MySQL-PHP
Setting Up WampServer
WampServer bundles Apache, MySQL and PHP for Winodws in a single package. It also
includes tools such as PhpMyAdmin (a MySQL database administration tool), SQL Buddy
(an alternative to PhpMyAdmin), XDebug (a PHP Debugging Tool), WebGrind (a PHP
Profiling Tool).
Installing WampServer
To install the WAMPServer, simply run the downloaded installation file. Choose your
installation directory. I shall assume that WampServer is installed in "d:\WampServer",
denoted as <WAMPSERVER_HOME>, in this article.
Starting WampServer
To start the WampServer, choose "start WampServer" from the "Start" menu; or run
"wampmanager.exe" from the WampServer installed directory. An icon will appear on the
icon tray. "Green" icon indicates that all the services have started. "Red" indicates that all the
services have stopped. You can put the server online (so that user can access the server over
the Internet) by selecting the option "Put Online". Alternatively, you could put the server
"Offline", such that it is accessible only within the localhost.
By default, a directory called "www" was created under the WampServer installed directory,
which serves as the root directory of the Apache Server. A welcome page called "index.php"
was also created in the "www" directory.
   2. Start a browser and issue URL http://localhost. This will in turn request for
       "index.php". Observe the output and compare with "index.php" source.
save it as hello.php or with any name that you want to save it with.
Note: The directory you need to chose to save a php file in c:\\wamp\www\ or in the
directory where you have installed wamp server in root directory.
Now startwamp server, by running start wamp server application, and right click on the icon
present in the system tray, as shown below and click on start services.
FLASH
    • Macromedia Flash is a multimedia graphics program especially for            use on the Web.
    • Flash enables you to create interactive "movies" on the Web.
    • Flash uses vector graphics, which means that the graphics can be scaled to any size
    without Losing clarity/quality.
    • Flash does not require programming skills and is easy to learn
<div class="card">
<div class="card-header">
<h3 class="card-title">DataTable with default features</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<?php include('val.php');?>
<form name="form1" method="post" action="bookinsert.php" id="formID">
<p> </p>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<td width="81">Book ISBN</td>
<td width="350"><input name="b_isbn" type="text" id="b_isbn"
class="validate[required],custom[onlyNumber]"></td>
</tr>
<tr>
<td>Book Name</td>
<td><input name="book_n" type="text" id="book_n"
class="validate[required],custom[onlyLetter]"></td>
</tr>
<tr>
<td>Book Author</td>
<td><input name="b_author" type="text" id="b_author"
class="validate[required],custom[onlyLetter]"></td>
</tr>
<tr>
<td>Book_Type</td>
<td><input name="book_type" type="text" id="book_type"
class="validate[required],custom[onlyLetter]"></td>
</tr>
<tr>
<td>Book Publication</td>
<td><input name="b_publication" type="text" id="b_publication"
class="validate[required],custom[onlyLetter]"></td>
</tr>
<tr>
<td>Book Edition</td>
<td><input name="b_edition" type="text" id="b_edition"
class="validate[required],custom[onlyNumber]"></td>
</tr>
<tr>
<td>Book Photo</td>
<td><input name="b_photo" type="text" id="b_photo" class="validate[required]"></td>
</tr>
<tr>
<td>Book Price</td>
<td><input name="b_price" type="text" id="b_price"
class="validate[required],custom[onlyNumber]"></td>
</tr>
<tr>
<td>Book Gst</td>
<td><input name="b_gst" type="text" id="b_gst"
class="validate[required],custom[onlyNumber]">%</td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Reset">
                                                           </td>
                                             </tr>
                                             </thead>
</table>
</form>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
</div>
<!-- /.content-wrapper -->
$b_isbn=$_POST['b_isbn'];
$book_n=$_POST['book_n'];
$b_author=$_POST['b_author'];
$book_type=$_POST['book_type'];
$b_publication=$_POST['b_publication'];
$b_edition=$_POST['b_edition'];
$b_photo=$_POST['b_photo'];
$b_price=$_POST['b_price'];
$b_gst=$_POST['b_gst'];
$con=mysql_connect('localhost','root','');
mysql_select_db('bookp',$con);
$sql="insert into book1
values(null,'$b_isbn','$book_n','$b_author','$book_type','$b_publication','$b_edition','$b_phot
o','$b_price','$b_gst')";
mysql_query($sql);
?>
<script>
alert('thank you for inserting');
document.location="book_info_view.php";
</script>
<div class="card">
<div class="card-header">
<h3 class="card-title">DataTable with default features</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<?php
$id=$_REQUEST['id'];
$con=mysql_connect('localhost','root','');
mysql_select_db('bookp',$con);
$sql="select * from book1 where book_id='$id' ";
$res=mysql_query($sql);
$row=mysql_fetch_array($res);
?>
<?php include('val.php');?>
</div>
<!-- /.content-wrapper -->
<?php
$id=$_REQUEST['id'];
$con=mysql_connect('localhost','root','');
mysql_select_db('bookp',$con);
$sql="delete from book1 where book_id='$id' ";
$res=mysql_query($sql);
?>
<script>
alert('thank you for inserting');
document.location="book_info_view.php";
</script>
<section class="content">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">DataTable with default features</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>#</th>
<th>Book ISBN</th>
<th>Book Name</th>
<th>Book Author</th>
<th>Book Type</th>
<th>Book Publication</th>
<th>Book Edition</th>
<th>Book Photo</th>
<th>Book Price</th>
<th>Book Gst</th>
                                                          <th></th>
                                                          <th></th>
</tr>
</thead>
<tbody>
<?php
$con=mysql_connect('localhost','root','');
mysql_select_db('bookp',$con);
while($row=mysql_fetch_array($res))
{
?>
<tr>
<td height="48"><?php echo $row['book_id'];?></td>
<td><?php echo $row['b_isbn'];?></td>
<td><?php echo $row['book_n'];?></td>
<td><?php echo $row['b_author'];?></td>
<td><?php echo $row['book_type'];?></td>
<td><?php echo $row['b_publication'];?></td>
<td><?php echo $row['b_edition'];?></td>
<td><?php echo $row['b_photo'];?></td>
<td><?php echo $row['b_price'];?></td>
<td><?php echo $row['b_gst'];?></td>
<td><a href="book_delete.php?id=<?php echo $row['book_id']; ?>">delete</a></td>
                                                          <td><a href="book_edit.php?
id=<?php echo $row['book_id']; ?>">edit</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
</div>
<!-- /.content-wrapper -->
                                        5.TESTING
Software Testing:
The code is tested at various levels in                  software testing. Unit,system and
useracceptancetesting’sareoftenperformed.Thisisagrey        areaasmany      differentopinionsexist
astowhatthestagesoftestingareandhowmuchifany iterationoccurs.Iterationisnot generallypart
ofthe waterfallmodel, but usuallysome occurat this stage.
Softwaretesting         istheexecutionofprogramtofinditsfaults.Thetesting       processfocuseson
thelogicalinternalsofthesoftware,ensuring             thatallstatementshavebeentestedandonthe
functionalexternals,thatisconducting             testtouncovererrorsandensurethatdefinedinputs
willproduceactualresultsagreedwithrequiredresults.Thefollowing teststrategieswere adopted
to test thesystem.
Testing objective:
Testing          isprocessofexecuting    aprogramwiththeintentoffindinganerror.Agoodtestcase
isonethathighprobability                offindinganasyetundiscoverederror.Asuccessfultestisone
thatuncoversanasyetundiscoverederror.Theaboveobjectivesimply                 adramaticchangein
viewpoint.Testingcannotshowtheabsenceofdefect,itcanonly                 showthatsoftwareerrors
arepresent.
TESTINGSTRATEGIES:
There aretwogeneralstrategies fortestingsoftware. Theseare as follows:
Code testing:
Specification testing:
Integration testing:
Integrationtesting                   isasystematictechniqueforconstructing                    the
programstructurewhileatthesametimeconducting                  testtouncovererrorsassociatedwith
interfacing.Thistestingisdone     usingthe      bottom-upapproachtointegrate        thesoftware
components of thesoftwaresystem in to functioningwhole.
Acceptance testing:
Useracceptanceofthesystemisthekeyfactorforthesuccessof
anysystem.Thisisdonebyuser.Thesystemisgiventotheuserandtheytestitwithlive
data.Acceptancetestinginvolvestheplanning           andexecutionoffunctionaltest.Performance
tests,stresstestsinorder todemonstrate thatthe implemented systemsatisfiesits requirements.
Twosetsofacceptancetestcan berun,thosedevelopedby thecustomer.The system hasbeen tested
for its performance at unit level        by     the individuals through performancetesting
thatisdesignedtotestthe     runtimeperformanceofthesoftware.The         performanceof        the
fullyintegrated system is tested and was foundgood.
Performance testing:
Performance Testing can serve different purpose. It can demonstrate that the system meets
the performance criteria. It can compare two systems to find which performs better, or it can
measure what parts of the system or workload cause the system to perform badly. In the
diagnostic case, software engineers use tools such as profilers to measure what parts of a
device or software contributes most to the poor performance.
It was a good idea to do our stress testing early on, because it gave us time to fix some of the
unexpected deadlocks and stability problems that only occurred when components were
exposed to very high transaction volumes.
System testing:
Systemtestingisactuallyaseriesofdifferent          testswhoseprimary         purposeisfully
toexercisethecomputer-basedsystem.Thesystemteststhatwhereapplied
arerecoverytestingandperformancetesting.Finallyarevieworauditisconductedwhichis
afinalevaluationthatoccursonly       afteroperating       thesystemlongenoughforusertohave
gainedafamiliarity withit.
Systemtestingwasdoneby          theinspectionteamtoverify        thatall      thefunctionality
identifiedisthesoftwarerequirementspecificationhasbeenimplemented.
Defectsthatcreptinthesystemhasbeenfounddefectfreeandisworkingwell.System                testing
isconcerned       withinterfaces,designlogic,controlflowrecovery,procedures        throughput,
capacityand timing characteristics of the entire system. For blankfield,alphabets, number and
special character validation.
This method focuses on the functional requirements of the software. This testing enables to
derive set input conditions that will fully exercise all functional requirements of the program.
Black Box Testing attempts to find errors in the following category.
       It has been used to generate the test case in the following test cases:
                   Guarantee that all independent paths have been executed.
                   Execute all logical decisions from their True and False side.
                   Execute all loops at their boundaries and within their operational bounds.
                   Execute internal data structures to ensure their validity.
                   Ensure whether all the possible validity checks and validity lookups have
                    been provided to validate data entry.
Functional testing:
Functional tests provide a systematic demonstration of the functions tested that are available
as specified by the business and technical requirements, system documentation, and user
manuals.
TestCasesandResults:
   8.4.1 Test Case 1: Login Page
           Input                                     Username and Password
           Result                                   Successful
8.4.2 Test Case 2: Updating
        Input                          Open the page for modification and make
                                       necessary changes and press submit button
Result Successful
Result Successful
                   6. RESULTS/SCREENSHOTS
LOGIN PAGE:
Admin Module
EDIT PAGE:
7. CONCLUSION
Software is said to have attained its objective only when it meet all requirements of the user, further the user
himself is the person to judge the success of the system.Every attempt has been made to ensure that the system
is fully functional & works effectively &efficiently.The system has been tested with simple data to cover all
possible options & checked for al outputs. Since the system is flexible & modular, further modifications of this
package can be easily incorporated.
 Increased efficiency.