Library Management System
Library Management System
LIBRARY MANAGEMENT
SYSTEM
Submitted By:
PRABHAKAR KUMAR
RAHUL KUMAR
RAJAT SINGH
VIKRAM PRATAP SINGH
B. TECH DEGREE
In
KOCHI-682022
MARCH 2014
Page 1
CERTIFICATE
Certified that this is a bonafide record of the project work titled
PRABHAKAR KUMAR
RAHUL KUMAR
RAJAT SINGH
VIKRAM PRATAP SINGH
of VI semester Computer Science & Engineering in the year 2014 in
partial fulfillment of the requirements for the award of Degree of Bachelor
of Technology in Computer Science & Engineering of Cochin University
of Science & Technology.
ANCY ZACHARIAH
Project Guide
PRAMOD PAVITHRAN
Head of the Division
Page 2
ACKNOWLEDGEMENT
We take this occasion to thank God, almighty for blessing us with his grace and taking
our endeavor to a successful culmination. We extend our sincere and heartfelt thanks to our
esteemed guide, Mrs. ANCY ZACHARIAH, for providing us with the right guidance and
advice at the crucial junctures and for showing me the right way. We also take this opportunity to
express a deep sense of gratitude to our class coordinators, Dr. SUDHEEP ELAYIDOM and
Mrs PREETHA S for their cordial support, valuable suggestions and guidance. We extend our
sincere thanks to our respected Head of the division Mr. PRAMOD PAVITHRAN, for
allowing us to use the facilities available. We would like to thank the other faculty members also,
at this occasion. Last but not the least, we would like to thank our friends and family for the
support and encouragement they have given us during the course of our work.
Page 3
TABLE OF CONTENTS
ABSTRACT
1. INTRODUCTION
2. SYSTEM ANALYSIS
15
16
3. SYSTEM DESIGN
20
20
24
4. SYSTEM IMPLEMENTATION
30
30
80
5. SYSTEM TESTING
85
85
87
88
7. REFERENCES
89
Page 4
ABSTRACT
Page 5
CHAPTER 1
INTRODUCTION
This chapter gives an overview about the aim , objectives ,background and operation
environment of the system.
Page 6
Page 7
PROCESSOR
OPERATING SYSTEM
MEMORY
DATABASE
MY SQL
Page 8
CHAPTER 2
SYSTEM ANALYSIS
In this chapter, we will discuss and analyze about the developing process of Library
Management System including software requirement specification (SRS) and
comparison between existing and proposed system . The functional and non functional
requirements are included in SRS part to provide complete description and overview of
system requirement before the developing process is carried out. Besides that, existing
vs proposed provides a view of how the proposed system will be more efficient than the
existing one.
2.1
PRODUCT DESCRIPTION:
Library Management System is a computerized system which helps
user(librarian) to manage the library daily activity in electronic format. It reduces
the risk of paper work such as file lost, file damaged and time consuming.
It can help user to manage the transaction or record more effectively and timesaving.
PROBLEM STATEMENT:
The problem occurred before having computerized system includes:
File lost
When computerized system is not implemented file is always lost because of human
environment.Some times due to some human error there may be a loss of records.
File damaged When a computerized system is not there file is always lost due to
some accdent like spilling of water by some member on file accidentally.Besides
some natural disaster like floods or fires may also damage the files.
Page 9
Space consuming
After the number of records become large the space for physical storage of file and
records also increases if no computerized system is implemented.
Cost consuming
As there is no computerized system the to add each record paper will be needed
which will increase the cost for the management of library.
Save cost
After computerized system is implemented less human force will be required to
maintain the library thus reducing the overall cost.
Save time
Librarian is able to search record by using few clicks of mouse and few search
keywords thus saving his valuable time.
Lecture Notes
Teacher have a facility to upload lectures notes in a pdf file having size not more
than 10mb
Page 10
Product Requirements
EFFICIENCY REQUIREMENT
When a library management system will be implemented librarian and user will
easily acess library as searching and book transaction will be very faster .
RELIABILITY REQUIREMENT
The system should accurately performs member registration ,member validation ,
report generation, book transaction and search
USABILITY REQUIREMENT
The system is designed for a user friendly environment so that student and staff of
library can perform the various tasks easily and in an effective way.
ORGANIZATIONAL REQUIREMENT
IMPLEMENTATION REQUIREMNTS
In implementing whole system it uses html in front end with php as server side
scripting language which will be used for database connectivity and the backend ie
the database part is developed using mysql.
DELIVERY REQUIREMENTS
The whole system is expected to be delivered in six months of time with a weekly
evaluation by the project guide.
Page 11
password before they are allowed to enter the system .The user id and password will be verified
and if invalid id is there user is allowed to not enter the system.
Functional requirements
-user id is provided when they register
-The system must only allow user with valid id and password to enter
the system
-The system performs authorization process which decides what user level can acess to.
-The user must be able to logout after they finished using system.
Functional requirements
-System must be able to verify information
-System must be able to delete information if information is wrong
Page 12
DESCRIPTION OF FEATURE
This feature is found in book maintenance part . we can search book based on book id ,
book name , publication or by author name.
Functional requirements
-
System must be able to search the database based on select search type
DESCRIPTION OF FEATURE
This feature allows to issue and return books and also view reports of book issued.
Functional requirements
-System must be able to enter issue information in database.
-System must be able to update number of books.
- System must be able to search if book is available or not before issuing
books
DESCRIPTION OF FEATURE
This feature allows teacher and student to add information about various workshops being
conducted in college and colleges nearby.
Page 13
Development tools and Programming language- HTML is used to write the whole
code and develop webpages with css, java script for styling work and php for
sever side scripting.
Page 14
i.
Existing system does not have any facility of teachers login or student login
where as proposed system will have a facility of student login as well as
teachers login
ii.
Existing system does not have a facility of online reservation of books whereas
proposed system has a facility of online reservation of books
iii.
Existing system does not have any facility of online notice board where
description of workshops happening in our college as well as nearby colleges is
being provided.
iv.
Existing system does not has any option of lectures notes uploaded by teachers
whereas proposed system will have this facility
v.
Existing system does not have any facility to generate student reports as well
book issue reports whereas proposed system provides librarian with a tool to
generate reports
vi.
Existing system does not has any facility for book request and sugeestions
where as in proposed system after logging in to their accounts student can
request books as well as provide suggestions to improve library
Page 15
2.3
The whole Project is divided in two parts the front end and the back end.
2.3.1 Front end
The front end is designed using of html , Php ,css, Java script
CSS- Cascading Style Sheets (CSS) is a style sheet language used for
describing the look and formatting of a document written in a markup
language. While most often used to style web pages and interfaces written
in HTML and XHTML, the language can be applied to any kind
of XML document, including plain XML, SVG and XUL. CSS is a cornerstone
specification of the web and almost all web pages use CSS style sheets to
describe their presentation.CSS is designed primarily to enable the
separation of document content from document presentation, including
elements such as the layout, colors, and fonts. This separation can improve
content accessibility, provide more flexibility and control in the specification
Page 16
Page 17
2.3.2 BACK END- The back end is designed using mysql which is
databases
MYSQL- MySQL ("My S-Q-L", officially, but also called "My Sequel") is (as of
July 2013) the world's second most widely used open-source relational database
management system (RDBMS). It is named after co-founder Michael Widenius
daughter, My. The SQL phrase stands for Structured Query Language. The
MySQL development project has made its source code available under the terms
of the GNU General Public License, as well as under a variety
of proprietary agreements. MySQL was owned and sponsored by a single forprofit firm, the Swedish company MySQL AB, now owned by Oracle Corporation
.MySQL is a popular choice of database for use in web applications, and is a
central component of the widely used LAMP open source web application
software stack (and other 'AMP' stacks). LAMP is an acronym for "Linux, Apache,
MySQL, Perl/PHP/Python." Free-software-open source projects that require a
full-featured database management system often use MySQL. For commercial
use, several paid editions are available, and offer additional functionality.
Applications which use MySQL databases
Division Of Computer Science And Engineering
Page 18
Page 19
CHAPTER 3
SYSTEM DESIGN
3.1
TABLE DESIGN
Data type
Default
Key
Extra
Code
INT(11)
Not Null
Primary
Auto
increment
Bookname
VARCHAR(255)
Null
Author
VARCHAR(255)
Null
Publication VARCHAR(255)
Null
Subject
VARCHAR(255)
Null
No of
copies
INT(10)
Null
Page 20
Data type
Default
Key
Extra
libid
INT(11)
NOT NULL
Primary key
Auto increment
regno
INT(10)
NULL
branch
VARCHAR(255)
NULL
section
VARCHAR(255)
NULL
semester
VARCHAR(255)
NULL
section
VARCHAR(2)
NULL
yearofadm
INT(5)
NULL
Data Type
Default
Key
Extra
Tid
INT(11)
NOT NULL
Primary key
Auto
increment
Name
VARCHAR(255) NULL
Designation
VARCHAR(255) NULL
Branch
VARCHAR(255) NULL
Contactno
INT(13)
NULL
Lectures
LONG BLOB
NULL
Page 21
Data Type
Default
Key
Extra
bookid
INT(11)
NOT NULL
Foreign key
References
book
stuid
INT(11)
NOT NULL
Foreign key
References
Student
issuedate
DATE
NULL
returndate
DATE
NULL
Data type
Default
Key
Extra
logid
INT(11)
NOT NULL
Foreign key
References
Student
Username
VARCHAR(255)
NULL
Password
VARCHAR(255)
NULL
numbooks
INT(1)
NULL
Page 22
Data type
Default
Name
Varchar(255)
NULL
Date
Date(yyyy/mm/dd)
NULL
Time
VARCHAR(255)
NULL
Mname
VARCHAR(255)
NULL
Contactno. Int(30)
NULL
VARCHAR(255)
NULL
Venue
varchar(255)
NULL
Key
Extra
Data Type
Default
Key
Extra
Loginid
INT(11)
NOT NULL
Foreign
key
References
teacher
Username
VARCHAR(255)
NULL
Password
VARCHAR(255)
NULL
Page 23
3.2
TEACHER
DATABASE
TEACHER
ENTER
URL
ENTER
USERNAME
&
PASSWORD
CHECK
VALIDITY
IF VALID
WEB SERVER
TEACHER
LOGIN
PAGE
After entering to the home page of the website , teacher can choose the TEACHER LOGIN
option where they are asked to enter username & password , and if he/she is a valid user then
a teacher login page will be displayed.
Page 24
STUDENT
DATABASE
STUDENT
ENTER
URL
ENTER
USERNAME
&
PASSWORD
CHECK
VALIDITY
IF VALID
WEB SERVER
STUDENT
LOGIN
PAGE
After entering to the home page of the website , student can choose the STUDENT LOGIN
option where they are asked to enter username & password , and if he/she is a valid user then
a student login page will be displayed.
Page 25
LOGIN
DATABASE
STUDENT
LOGIN
PAGE
SELECT
BOOK
ISSUE
ENTER
BOOK
DETAIL
IF
SELECT
BOOK
ISSUE
AVBL
BOOK
DATABASE
LOGIN
TABLE
IF NO.
OF
BOOK
ISSUED
LESS THAN
3
UPDATE
NO.
OF
COPIES
MESSAGE
BOOK
RESERVED
BOOK
DATABASE
It is a 2nd level Data Flow Diagram where after entering STUDENT LOGIN page he/she can select
a book issue option where after entering the book detail, he/she can select the book issue
option and if the maximum no of books issued limit is not crossed then a request will be sent to
the librarian who will approve the book issue.
Page 26
HOME
SELECT
ADVANCE
SEARCH
ENTER
BOOK
DETAIL
IF
FOUND
BOOK
DETAILS
BOOK
DATABASE
After the home page login there will be an option of the book search where after entering book
detail like author name, publication, book name etc book details will be displayed.
Page 27
HOME
SELECT
ACCOUNT
CREATION
ENTER
STUDENT
DETAIL
IF ALL REG.
PARTIALLY
IS
FILLED
ADMIN
DATABASE
ADMIN
VERIFY
STUDEN
T
MESSAGE
SENT
TO
STUDENT
IF VALID
STUDENT
DATABASE
After the home page login there will be an option of CREATE AN ACCOUNT where after
entering student detail ,if all the fields are filled then a request will be sent to the librarian who
will approve him as a registered member of the library.
Page 28
CHAPTER 4
SYSTEM IMPLEMENTATION
4.1.1
Page 29
STUDENT
VALIDATION
TEACHER
REGISTRATION
BOOK ADDITION
REPORT
GENERATION
The following module contains various facilities like student validation, teacher
registration, book addition, and report generation.
4.1.1.1 Code for Admin module
4.1.1.1 Code for entering admin username and password
<?php
//Start session
session_start();
//Unset the variables stored in session
unset($_SESSION['SESS_FIRST_NAME']);
unset($_SESSION['SESS_LAST_NAME']);
?>
<!DOCTYPE html>
<html xml:lang="EN" lang="EN" dir="ltr">
<head>
<title>SOE LIBRARY INFORMATION SYSTEM</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../styles/layout.css" type="text/css" />
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="../scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../scripts/jquery.tabs.setup.js"></script>
<!-- End Homepage Specific Elements -->
</head>
<body id="top">
<div class="wrapper row1">
<div id="header" class="clear">
<div class="fl_left">
Division Of Computer Science And Engineering
Page 30
Page 31
Page 32
Page 33
Page 34
Page 35
Page 36
Page 37
Page 38
Page 39
Page 40
4.1.2Student Module
STUDENT
STUDENT
REGISTRATION
STUDENT LOGIN
USERNAME AND
PASSWORD
AUTHENTICATION
ONLINE BOOK
RESERVATTION
EVENT ADDITION
FORGOT
PASSWORD
The following module contains various facilities like student registration, student login,
online book reservation, and event addition. Any student if at any moment forgets his
password he can retrieve it from forgot password option.
<!DOCTYPE html>
<html xml:lang="EN" lang="EN" dir="ltr">
<head>
<title>SOE LIBRARY INFORMATION SYSTEM</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../styles/layout.css" type="text/css" />
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="../scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-ui1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../scripts/jquery.tabs.setup.js"></script>
<!-- End Homepage Specific Elements -->
</head>
<body id="top">
<div class="wrapper row1">
Division Of Computer Science And Engineering
Page 41
Page 42
Page 43
Page 44
<div id="latestnews">
<h2>ENTER YOUR DETAILS</h2>
<p><span class="error">* required field.</span></p>
<table>
<form action="insertaccount.php" method="POST">
<legend>Student Information:</legend>
<tr>
<td>Library Id:</td> <td><input type="text" name="libid" size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Registration No: </td> <td><input type="text" name="regno" size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Name: </td> <td> <input type="text" name="stuname" size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Branch: </td> <td> <select name="branch" size="1" tabindex="7">
<option selected="selected">Computer Science</option>
<option>Electronics & Communication</option>
<option>Electrical & Electronics</option>
<option>Mechanical</option>
<option>Safety & Fire</option>
<option>Civil</option>
<option>Information Technology</option>
</select>
<span class="error">* </span><br><br></td>
Division Of Computer Science And Engineering
Page 45
Page 46
</div>
<!-- ###### -->
<!-- ###### -->
</div>
<!-####################################################################
################################### -->
<!-####################################################################
################################### -->
<div id="academiclinks" class="clear">
<h2>Quickly Find What You Are Looking For</h2>
<div class="linkbox">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">»
Home</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentlogin.php">»
; Student Login</a></li>
<li><a
href="http://localhost/xampp/project/library/teacherlogin/teacherlogin.php">»
; Teacher Login</a></li>
<li><a
href="http://localhost/xampp/project/library/adminlogin/adminlogin.php">»
Adminlogin</a></li>
<li><a
href="http://localhost/xampp/project/library/newarrivals/newarrivals.php">»
New Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks/onlinebooks">»
Online Books</a></li>
<li><a
href="http://localhost/xampp/project/library/egallery/egallery.php">» EGallery</a></li>
<li><a
href="http://localhost/xampp/project/library/aboutus/aboutus.php">» About
Us</a></li>
<li><a
href="http://localhost/xampp/project/library/contactus/contactus.php">»
Contact Us</a></li>
Page 47
Page 48
Page 49
Page 50
<?php
//Start session
session_start();
//Unset the variables stored in session
unset($_SESSION['SESS_username']);
unset($_SESSION['SESS_password']);
?>
<!DOCTYPE html>
<html xml:lang="EN" lang="EN" dir="ltr">
<head>
<title>SOE LIBRARY INFORMATION SYSTEM</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../styles/layout.css" type="text/css" />
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="../scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-ui1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../scripts/jquery.tabs.setup.js"></script>
<!-- End Homepage Specific Elements -->
</head>
<body id="top">
<div class="wrapper row1">
<div id="header" class="clear">
<div class="fl_left">
Division Of Computer Science And Engineering
Page 51
Page 52
Page 53
Page 54
Page 55
Page 56
Page 57
Page 58
Page 59
TEACHER
TEACHER LOGIN
USERNAME AND
PASSWORD
AUTHENTICATION
SUGGESTIONS
EVENT ADDITION
FORGOT
PASSWORD
The following module contains various facilities like teacher login, suggestions, and
event addition. Further any teacher if at any moment forgets his/her password he/she can
retrieve it from forgot password option.
Page 60
<?php
session_start();
?>
<!DOCTYPE html>
<html xml:lang="EN" lang="EN" dir="ltr">
<head>
<title>SOE LIBRARY INFORMATION SYSTEM</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../styles/layout.css" type="text/css" />
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="../scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-ui1.7.2.custom.min.js"></script>
Division Of Computer Science And Engineering
Page 61
Page 62
Page 63
Page 64
Page 65
Page 66
<?php
session_start();
require '../include/connection1.php';
$sql = mysqli_query($connection,"SELECT * FROM studentlogin
where username='$_SESSION[SESS_username]'&&
password='$_SESSION[SESS_password]'");
$rocount=mysqli_num_rows($sql);
if($rocount==1)
{
while($row = mysqli_fetch_array($sql))
{
$logid=$row['logid'];
$username= $row['username'] ;
$password= $row['password'] ;
$numbooks= $row['numbooks'];
}
}
$result = mysqli_query($connection,"SELECT * FROM student where
libid='$logid'");
$rowcount=mysqli_num_rows($result);
if($rowcount==1)
{
while($row = mysqli_fetch_array($result))
{
$libid=$row['libid'];
$regno= $row['regno'] ;
$stuname= $row['stuname'] ;
$branch= $row['branch'] ;
$semester= $row['semester'] ;
Division Of Computer Science And Engineering
Page 67
4.1.3
Page 68
BOOK MAINTENANCE
SEARCH BOOK
The following module contains various facilities like add new book and search book. In
the add new book section if any new book comes in the library then the librarian can
add its specifications. Similarly if the user wants to search for a specific book then
he/she can use search book option to do it.
Page 69
<!DOCTYPE html>
<html xml:lang="EN" lang="EN" dir="ltr">
<head>
<title>SOE LIBRARY INFORMATION SYSTEM</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../styles/layout.css" type="text/css" />
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="../scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../scripts/jquery.tabs.setup.js"></script>
<!-- End Homepage Specific Elements -->
</head>
<body id="top">
<div class="wrapper row1">
<div id="header" class="clear">
<div class="fl_left">
<h1><a href="homepage.php">SOE LIBRARY MANAGEMENT
SYSTEM</a></h1>
Division Of Computer Science And Engineering
Page 70
Page 71
Page 72
Page 73
<table>
<form action="advancesearchresult.php" method="POST">
<legend>Book Information:</legend>
<tr>
<td>Book Code:</td> <td><input type="text" name="bookcode"
size="30"><br><br></td>
</tr>
<tr>
<td>Book Name: </td> <td><input type="text" name="bookname"
size="30"><br><br></td>
</tr>
<tr>
<td>Publication: </td> <td> <input type="text" name="publication"
size="30"><br><br></td>
</tr>
<tr>
<td>Author Name: </td> <td>
<input type="text"name="authorname"
size="30"><br><br></td>
</tr>
<tr>
<td><p>Click the submit</p></td>
</tr>
<tr>
<td height="40"><input type="submit" name= "submit" value="submit" action=
"insertaccount.php"></td>
</tr>
Division Of Computer Science And Engineering
Page 74
Page 75
Page 76
ISSUE BOOK
RETURN BOOK
CHECK
RESERVATION
The following module contains various facilities like issue book, return book and check
reservation.
Page 77
<?php
require'../include/connection1.php';
$result = mysqli_query($connection,"SELECT * FROM studentlogin");
while($row = mysqli_fetch_array($result))
{
$libid=$row['logid'] ;
$username= $row['username'];
$password= $row['password'];
$numbooks=$row['numbooks'];
}
if($numbooks>3)
{
echo"cannnot issue books limit exceeded";
}
else
{
$libid=$_POST['libid'];
$bookid=$_POST['bookid'];
$issuedate=$_POST['issuedate'];
$returndate=date_add($issuedate,date_interval_create_from_date_string("15 days"));
$sql="INSERT INTO issuebooks(libid,bookid,issuedate,returndate)
VALUES
('$libid','$bookid','$issuedate','$returndate')";
mysqli_query($connection,"UPDATE studentlogin SET
numbooks=numbooks+1
WHERE logid='$libid'");
mysqli_query($connection,"UPDATE book SET
numberofbooks=numberofbooks-1
WHERE code='$bookid'");
if (!mysqli_query($connection,$sql))
{
die('Error1: ' . mysqli_error($connection));
}
else
echo"added 1 record";
}
mysqli_close($connection);
?>
Page 78
Page 79
REPORT
STUDENT REPORT
TEACHER REPORT
BOOK REPORT
TRANSACTION
REPORT
The following module contains various facilities like student report, teacher report, book
report, and transaction report.
<?php
require '../include/connection1.php';
$result = mysqli_query($connection,"SELECT * FROM
teacher");
$count=mysqli_num_rows($result);
echo "<table border='1' style='width=100px'>
<tr>
<td>Teacher id</td>
<td>Name</td>
<td>Designation</td>
<td>Branch</td>
<td>Contact no</td>
</tr>";
while($count>0)
{
while($row = mysqli_fetch_array($result))
Division Of Computer Science And Engineering
Page 80
<?php
require '../include/connection1.php';
$result = mysqli_query($connection,"SELECT * FROM
student");
$count=mysqli_num_rows($result);
echo "<table border='1' style='width=100px'>
<tr>
<td>Libraryid</td>
<td>Registration number</td>
<td>Name</td>
<td>Branch</td>
<td>Semester</td>
<td>Section</td>
<td>Year of adm</td>
</tr>";
while($count>0)
{
while($row = mysqli_fetch_array($result))
{echo "<tr>";
echo "<td>" . $row['libid'] . "</td>";
echo "<td>" . $row['regno'] . "</td>";
echo "<td>" . $row['stuname'] . "</td>";
echo "<td>" . $row['branch'] . "</td>";
echo "<td>" . $row['semester'] . "</td>";
echo "<td>" . $row['section'] . "</td>";
echo "<td>" . $row['yearofadm'] . "</td>";
Division Of Computer Science And Engineering
Page 81
<?php
require '../include/connection1.php';
$result = mysqli_query($connection,"SELECT * FROM
issuebooks order by libid");
$count=mysqli_num_rows($result);
echo "<table border='1' style='width=100px'>
<tr>
<td>Libraryid</td>
<td>Bookid</td>
<td>Issue date</td>
<td>Return date</td>
</tr>";
while($count>0)
{
while($row = mysqli_fetch_array($result))
{echo "<tr>";
echo "<td>" . $row['libid'] . "</td>";
echo "<td>" . $row['bookid'] . "</td>";
echo "<td>" . $row['issuedate'] . "</td>";
echo "<td>" . $row['returndate'] . "</td>";
echo"</tr>";
}
$count=$count-1;
}
mysqli_close($connection);
?>
</table>
Page 82
Page 83
CHAPTER 5
SYSTEM TESTING
The aim of the system testing process was to determine all defects in our project .The program
was subjected to a set of test inputs and various observations were made and based on these
observations it will be decided whether the program behaves as expected or not.
Our Project went through two levels of testing
1.Unit testing
2.integration testing
UNIT TESTING
Unit testing is undertaken when a module has been created and succesfully reviewed .In order to
test a single module we need to provide a complete environment ie besides the module we
would require
The procedures belonging to other modules that the module under test calls
A procedure to call the functions of the module under test with appropriate
parameters
Unit testing was done on each and every module that is described under module description of
chapter 4
Page 84
Student account addition- In this section the admin can verify student
details from student academinc info and then only add student details to
main library database it contains add and delete buttons if user click add
button data will be added to student database and if he clicks delete button
the student data will be deleted
Book Addition- Admin can enter details of book and can add the details to
the main book table also he can view the books requests .
Test for Student login Form-This form is used for log in of Student .In this
we enter thelibraryid, username and password if all these are correct student
login page will open other wise if any of data is wrong it will get redirected
back to the login page and again ask for libraryid, username and password.
Test for account creation- This form is used for new account creation when
student does not fill the form completely it asks again to fill the whole form
when he fill the form fully it gets redirected to page which show waiting for
conformation message as his data will be only added by administrator after
verification.
Test for teacher login form- This form is used for logg in of teacher .In
this we enter the username and password if all these are correct teacher
login page will open other wise if any of data is wrong it will get
redirected back to the login page and again ask for username and
password.
Page 85
INTEGRATION TESTING
In this type of testing we test various integration of the project module by providing the input
.The primary objective is to test the module interfaces in order to ensure that no errors are
occurring when one module invokes the other module.
Page 86
CHAPTER 6
CONCLUSION & FUTURE SCOPE
This website provides a computerized version of library management system which will benefit
the students as well as the staff of the library.
It makes entire process online where student can search books, staff can generate reports and do
book transactions. It also has a facility for student login where student can login and can see
status of books issued as well request for book or give some suggestions. It has a facility of
teachers login where teachers can add lectures notes and also give necessary suggestion to
library and also add info about workshops or events happening in our college or nearby college
in the online notice board.
There is a future scope of this facility that many more features such as online lectures video
tutorials can be added by teachers as well as online assignments submission facility , a feature
Of group chat where students can discuss various issues of engineering can be added to this
project thus making it more interactive more user friendly and project which fulfills each users
need in the best way possible
Page 87
CHAPTER 7
REFERENCES
http://www.w3schools.com/html/html_intro.asp
http://www.w3schools.com/css/css_background.asp
http://www.w3schools.com/js/js_datatypes.asp
http://www.w3schools.com/sql/sql_insert.asp
http://www.w3schools.com/sql/sql_update.asp
http://www.w3schools.com/php/php_forms.asp
Page 88