0% found this document useful (0 votes)
72 views43 pages

Training Report Prince

This document provides a training report on a library management system project. It includes a declaration, acknowledgements, abstract, and index. The project description section outlines the introduction, features, minimum requirements, objectives, and technologies used. Key features of the library management system website include searching for books, borrowing/returning books, managing user accounts and books, and interfaces for both librarians and users. The project aims to improve library services and the user experience through a web-based system. Technologies used include HTML, CSS, JavaScript, PHP, MySQL database, and GitHub for version control.

Uploaded by

myselfprince2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views43 pages

Training Report Prince

This document provides a training report on a library management system project. It includes a declaration, acknowledgements, abstract, and index. The project description section outlines the introduction, features, minimum requirements, objectives, and technologies used. Key features of the library management system website include searching for books, borrowing/returning books, managing user accounts and books, and interfaces for both librarians and users. The project aims to improve library services and the user experience through a web-based system. Technologies used include HTML, CSS, JavaScript, PHP, MySQL database, and GitHub for version control.

Uploaded by

myselfprince2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 43

A

Training Report
On
“Library Management System”
Submitted in the partial fulfillment of the requirement for the award
of
Diploma
In
Computer engineering
By
Prince Kumar
Roll no – 210330822010
Under the guidance of
Mr. Praveen kumar(senior developer)

Session: 2021-2024
Department of Computer Engineering
Guru Govind Singh Government Polytechnic
Cheeka, Haryana
DECLARATION

I hereby declare that the project work entitled “library management

system” is an authentic record of my own work carried out at Castex

Technologies. Ltd. Gurgaon as requirement of six weeks industrial

training for the award of Diploma in Computer Engineering, under the

guidance of Mr. Praveen Kumar(senior developer).

(Prince Kumar)
Date:01-12-2023
ACKNOWLEDGEMENT

I have taken efforts in this project. However, it would not have been possible
without the kind support and help of many individuals and organizations. I
would like to extend my sincere thanks to all of them.

I am highly indebted to Mr. Praveen Kumar(senior developer) for his


guidance and constant supervision as well as for providing necessary
information regarding the project & also for his support in completing the
project.

I would like to express my gratitude towards Mr. Sunil Saroha (Head of


Department) for his kind encouragement which help me in completion of this
project. My thanks and appreciations also go to our friends in developing the
project and people have willingly helped us out with their abilities.

(Prince Kumar)

Roll No: 210330822010


ABSTRACT

A “library management system” website is a web-based application that


allows users to access, manage, and share library resources online. The
website provides features such as searching, borrowing, returning, reserving,
and renewing books, as well as managing user accounts, fines, and feedback.
The website also enables librarians to perform tasks such as cataloging,
inventory, circulation, and reporting. The website aims to improve the
efficiency and convenience of library services, as well as to enhance the user
experience and satisfaction. The website can also integrate with other systems
and platforms, such as social media, e-books, and online databases. The
website is designed to be user-friendly, secure, and scalable. The website is
an example of how web technology can be used to create a modern and
innovative library management system.
INDEX
1. DECLARATION
2. ACKNOWLEDGEMENT
3. ABSTRACT
4. INDEX
5. PROJECT DISCRIPTION
I. Introduction
II. Features
III. Minimum processing requirement
IV. Objective of project
V. Technologies used
6. CODING
7. SNAPSHOTS
8. CONCLUSION
PROJECT DESCRIPTION

I. INTRODUCTION
A library management system is a software application that helps librarians and
users to manage and access library resources efficiently and conveniently. A
library management system can perform various functions, such as:

● Searching for books by title, author, subject, or other criteria

● Borrowing, returning, reserving, and renewing books

● Managing user accounts, fines, and feedback

● Cataloging, inventorying, circulating, and reporting books

● Integrating with other systems and platforms, such as e-books, online


databases, and social media
Library management system divided into two modes. An admin mode where
admin can list new book, issue a book to student, collect the book from the
student as well as user mode where user can see the available book and see the
book that have been issued to him on the dashboard
II. Library management system pages/features:
1. Home page (index): The "home page" of a website is the main or
introductory web page that serves as the starting point for a visitor's
journey through the site. It provides an initial introduction to the
website's content, purpose, or organization. This is where visitors
often get their first impression of what the website is about. It provides
information.

2. Branches: A "Branch Page" on a website is a dedicated web page that


provides the available branches and book are listed there. A visitor can
browse book section via category selection.
a. User login: a login page specifies the login URL in our web
application that user must pass through the get to the
authenticated URL at the heart of the application.

b. User signup: user sign page used for register a new user.

c. Admin login: admin login page used for authenticate the admin
and give access of whole system

⮚ Admin side: all the pages of admin are side listed below

1. Dashboard: dashboard page shows how many books are allocated to


the students and how many books available in library and what’s the
number of registered users.

2. Categories: this section use for add new category of books and also
manage their category.

3. Authors: this section is used for add new authors and manage the
author.

4. Books: this section is use for add new book and also manage the
books.

5. Issue book: this section is used for issue a new book.

6. Reg. student: this section is use for register the new student.

7. Change password: admin can change their password by this section.

⮚ User side: -

1. User dashboard: user dashboard shows the status of listed books,


books not returned yet and how many books issued to them.

2. Issued books: via this section user can see that how many books
issued to them.

3. Account: user can manage their account via account section

III. Minimum processing requirements:


There are two minimum requirements in the project: -
1. HARDWARE
● Keyboards

● Mouse

● Processor: intel core


i3
● System type: 64-bit
operation system
2. SOFTWARE
● Xampp Server: Its stands for window, Apache, MySQL, PHP server.
It allows you to create web applications with Apache 2, PHP and
MySQL database
● Operating System: Windows 10 is a personal computer operating
system developed by Microsoft as a part of the Window NT family of
operating system. However, the Website can be Developed and
deployed on Linux operating system as well.
● MySQL: MYSQL is a structure query language. MYSQL server is
used to maintain records in a relational fashion.
ABOUT PROJECT:

A Library Management System efficiently organizes and tracks library


resources, automating tasks like cataloging, borrowing, and returning
books. It enhances user experience, ensures accuracy, and facilitates
seamless library operations.

IV. OBJECTIVES OF THE PROJECT

● Objectives of project are as follows:

● Make Previous/Old Question Paper online so that student can browse


through previous question paper.
● Make a way to arrange Solutions for all Previous Question papers.

● Make a way for students to raise a complain about lagging services of


college.
V. TECHNOLOGIES USED: -
● HTML: HTML stands for hypertext Markup language, which is the
most widely used language on web to develop static web pages.
● CSS: CSS stands for Cascading style sheet. It is used for describing the
presentation semantics and formatting of a document written in a
markup language. Styles Sheets allow style information to be specified
in many ways. Flex layouts are used to Style the web pages.

● JavaScript: JavaScript is the scripting language of HTML or web. It


is a dynamic programming language and easy to learn.
● Code Editor: Visual Studio code editor developed and maintained
by Microsoft.
● GitHub: GitHub enables collaboration by allowing multiple people
to work on a project simultaneously.
1. GitHub Repository: A repository is a
container for a project. It contains all the
project files, documentation, and the revision
history.
2. GitHub Desktop: GitHub Desktop is a
graphical User interface Software. It is used
for pushing and fetching project files to/from
the remote repository.
● PHP: PHP stands for pre-hypertext processor is a server-side scripting
language that fits gracefully into HTML. It is used to manage dynamic
content, databases, session tracking, even build entire e-commerce sites.

● Database (MYSQL):

● MYSQL is used in the backend of the project. This is used to


maintain the database.
● MySQL server is an open-source system used to maintain
the relational database.
● When we can run the web site search, purchase, or download
the data this stored in the database directly in backend of the
project.
● We can create the database within phpMyAdmin.

● PhpMyAdmin is a free and open-source tool written in pup


intended to handle the administration of MySQL or with the
use of web browser.
● It can perform various tasks such as creating, modifying, or
deleting database, tables, field or rows; executing SQL
statements, or managing users and permissions.
● PhpMyAdmin is a MySQL application.

CODING:-

● Index.php
<?php

session_start();

error_reporting(0);

include('includes/config.php');

if($_SESSION['login']!=''){

$_SESSION['login']='';

if(isset($_POST['login']))

$email=$_POST['emailid'];

$password=md5($_POST['password']);

$sql ="SELECT EmailId,Password,StudentId,Status FROM tblstudents WHERE EmailId=:email and Password=:password";

$query= $dbh -> prepare($sql);

$query-> bindParam(':email', $email, PDO::PARAM_STR);

$query-> bindParam(':password', $password, PDO::PARAM_STR);

$query-> execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

if($query->rowCount() > 0)
{

foreach ($results as $result) {

$_SESSION['stdid']=$result->StudentId;

if($result->Status==1)

$_SESSION['login']=$_POST['emailid'];

echo "<script type='text/javascript'> document.location ='dashboard.php'; </script>";

} else {

echo "<script>alert('Your Account Has been blocked .Please contact admin');</script>";

else{

echo "<script>alert('Invalid Details');</script>";

?>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta charset="utf-8" />

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

<meta name="description" content="" />

<meta name="author" content="" />

<title>Online Library Management System | </title>

<!-- BOOTSTRAP CORE STYLE -->

<link href="assets/css/bootstrap.css" rel="stylesheet" />

<!-- FONT AWESOME STYLE -->

<link href="assets/css/font-awesome.css" rel="stylesheet" />

<!-- CUSTOM STYLE -->

<link href="assets/css/style.css" rel="stylesheet" />

<!-- GOOGLE FONT -->

<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />

</head>
<body>

<!------MENU SECTION START-->

<?php include('includes/header.php');?>

<!-- MENU SECTION END-->

<div class="content-wrapper">

<div class="container">

<!--Slider---->

<div class="row">

<div class="col-md-10 col-sm-8 col-xs-12 col-md-offset-1">

<div id="carousel-example" class="carousel slide slide-bdr" data-ride="carousel" >

<div class="carousel-inner">

<div class="item active">

<img src="assets/img/1.jpg" alt="" />

</div>

<div class="item">

<img src="assets/img/2.jpg" alt="" />

</div>

<div class="item">

<img src="assets/img/3.jpg" alt="" />

</div>

</div>

<!--INDICATORS-->

<ol class="carousel-indicators">

<li data-target="#carousel-example" data-slide-to="0" class="active"></li>

<li data-target="#carousel-example" data-slide-to="1"></li>

<li data-target="#carousel-example" data-slide-to="2"></li>

</ol>

<!--PREVIUS-NEXT BUTTONS-->

<a class="left carousel-control" href="#carousel-example" data-slide="prev">

<span class="glyphicon glyphicon-chevron-left"></span>

</a>

<a class="right carousel-control" href="#carousel-example" data-slide="next">

<span class="glyphicon glyphicon-chevron-right"></span>

</a>

</div>

</div>

</div>

<hr />
<div class="row pad-botm">

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

<h4 class="header-line">USER LOGIN FORM</h4>

</div>

</div>

<a name="ulogin"></a>

<!--LOGIN PANEL START-->

<div class="row">

<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" >

<div class="panel panel-info">

<div class="panel-heading">

LOGIN FORM

</div>

<div class="panel-body">

<form role="form" method="post">

<div class="form-group">

<label>Enter Email id</label>

<input class="form-control" type="text" name="emailid" required autocomplete="off" />

</div>

<div class="form-group">

<label>Password</label>

<input class="form-control" type="password" name="password" required autocomplete="off" />

<p class="help-block"><a href="user-forgot-password.php">Forgot Password</a></p>

</div>

<button type="submit" name="login" class="btn btn-info">LOGIN </button> | <a href="signup.php">Not Register Yet</a>

</form>

</div>

</div>

</div>

</div>

<!---LOGIN PABNEL END-->


</div>

</div>

<!-- CONTENT-WRAPPER SECTION END-->

<?php include('includes/footer.php');?>

<!-- FOOTER SECTION END-->

<script src="assets/js/jquery-1.10.2.js"></script>

<!-- BOOTSTRAP SCRIPTS -->

<script src="assets/js/bootstrap.js"></script>

<!-- CUSTOM SCRIPTS -->

<script src="assets/js/custom.js"></script>

</body>

</html>

● Admin_login.php
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if($_SESSION['alogin']!=''){
$_SESSION['alogin']='';
}
if(isset($_POST['login']))
{
$username=$_POST['username'];
$password=md5($_POST['password']);
$sql ="SELECT UserName,Password FROM admin WHERE UserName=:username and Password=:password";
$query= $dbh -> prepare($sql);
$query-> bindParam(':username', $username, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
$_SESSION['alogin']=$_POST['username'];
echo "<script type='text/javascript'> document.location ='admin/dashboard.php'; </script>";
} else{
echo "<script>alert('Invalid Details');</script>";
}
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Online Library Management System</title>
<!-- BOOTSTRAP CORE STYLE -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE -->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />

</head>
<body>
<!------MENU SECTION START-->
<?php include('includes/header.php');?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">ADMIN LOGIN FORM</h4>
</div>
</div>

<!--LOGIN PANEL START-->


<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" >
<div class="panel panel-info">
<div class="panel-heading">
LOGIN FORM
</div>
<div class="panel-body">
<form role="form" method="post">

<div class="form-group">
<label>Enter Username</label>
<input class="form-control" type="text" name="username" autocomplete="off" required />
</div>
<div class="form-group">
<label>Password</label>
<input class="form-control" type="password" name="password" autocomplete="off" required />
</div>

<button type="submit" name="login" class="btn btn-info">LOGIN </button>


</form>
</div>
</div>
</div>
</div>
<!---LOGIN PABNEL END-->

</div>
</div>
<!-- CONTENT-WRAPPER SECTION END-->
<?php include('includes/footer.php');?>
<!-- FOOTER SECTION END-->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</script>
</body>
</html>
● Dashboard.php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Online Library Management System | User Dash Board</title>
<!-- BOOTSTRAP CORE STYLE -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE -->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />

</head>
<body>
<!------MENU SECTION START-->
<?php include('includes/header.php');?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">User DASHBOARD</h4>

</div>

</div>

<div class="row">

<a href="listed-books.php">
<div class="col-md-4 col-sm-4 col-xs-6">
<div class="alert alert-success back-widget-set text-center">
<i class="fa fa-book fa-5x"></i>
<?php
$sql ="SELECT id from tblbooks ";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$listdbooks=$query->rowCount();
?>
<h3><?php echo htmlentities($listdbooks);?></h3>
Books Listed
</div></div></a>

<div class="col-md-4 col-sm-4 col-xs-6">


<div class="alert alert-warning back-widget-set text-center">
<i class="fa fa-recycle fa-5x"></i>
<?php
$rsts=0;
$sid=$_SESSION['stdid'];
$sql2 ="SELECT id from tblissuedbookdetails where StudentID=:sid and (RetrunStatus=:rsts ||
RetrunStatus is null || RetrunStatus='')";
$query2 = $dbh -> prepare($sql2);
$query2->bindParam(':sid',$sid,PDO::PARAM_STR);
$query2->bindParam(':rsts',$rsts,PDO::PARAM_STR);
$query2->execute();
$results2=$query2->fetchAll(PDO::FETCH_OBJ);
$returnedbooks=$query2->rowCount();
?>

<h3><?php echo htmlentities($returnedbooks);?></h3>


Books Not Returned Yet
</div>
</div>

<a href="issued-books.php">
<div class="col-md-4 col-sm-4 col-xs-6">
<div class="alert alert-success back-widget-set text-center">
<i class="fa fa-book fa-5x"></i>
<h3>&nbsp;</h3>
Issued Books
</div></div></a>
</div>
</div>
</div>
<!-- CONTENT-WRAPPER SECTION END-->
<?php include('includes/footer.php');?>
<!-- FOOTER SECTION END-->
<!-- JAVASCRIPT FILES PLACED AT THE BOTTOM TO REDUCE THE LOADING TIME -->
<!-- CORE JQUERY -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</body>
</html>
<?php } ?>

● Signup:
<?php
session_start();
include('includes/config.php');
error_reporting(0);
if(isset($_POST['signup']))
{

//Code for student ID


$count_my_page = ("studentid.txt");
$hits = file($count_my_page);
$hits[0] ++;
$fp = fopen($count_my_page , "w");
fputs($fp , "$hits[0]");
fclose($fp);
$StudentId= $hits[0];
$fname=$_POST['fullanme'];
$mobileno=$_POST['mobileno'];
$email=$_POST['email'];
$password=md5($_POST['password']);
$status=1;
$sql="INSERT INTO tblstudents(StudentId,FullName,MobileNumber,EmailId,Password,Status)
VALUES(:StudentId,:fname,:mobileno,:email,:password,:status)";
$query = $dbh->prepare($sql);
$query->bindParam(':StudentId',$StudentId,PDO::PARAM_STR);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':mobileno',$mobileno,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
echo '<script>alert("Your Registration successfull and your student id is "+"'.
$StudentId.'")</script>';
}
else
{
echo "<script>alert('Something went wrong. Please try again');</script>";
}
}

?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<![endif]-->
<title>Online Library Management System | Student Signup</title>
<!-- BOOTSTRAP CORE STYLE -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE -->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
<script type="text/javascript">
function valid()
{
if(document.signup.password.value!= document.signup.confirmpassword.value)
{
alert("Password and Confirm Password Field do not match !!");
document.signup.confirmpassword.focus();
return false;
}
return true;
}
</script>
<script>
function checkAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'emailid='+$("#emailid").val(),
type: "POST",
success:function(data){
$("#user-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>

</head>
<body>
<!------MENU SECTION START-->
<?php include('includes/header.php');?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">User Signup</h4>

</div>

</div>
<div class="row">

<div class="col-md-9 col-md-offset-1">


<div class="panel panel-danger">
<div class="panel-heading">
SINGUP FORM
</div>
<div class="panel-body">
<form name="signup" method="post" onSubmit="return valid();">
<div class="form-group">
<label>Enter Full Name</label>
<input class="form-control" type="text" name="fullanme" autocomplete="off" required />
</div>

<div class="form-group">
<label>Mobile Number :</label>
<input class="form-control" type="text" name="mobileno" maxlength="10" autocomplete="off"
required />
</div>

<div class="form-group">
<label>Enter Email</label>
<input class="form-control" type="email" name="email" id="emailid" onBlur="checkAvailability()"
autocomplete="off" required />
<span id="user-availability-status" style="font-size:12px;"></span>
</div>

<div class="form-group">
<label>Enter Password</label>
<input class="form-control" type="password" name="password" autocomplete="off" required />
</div>

<div class="form-group">
<label>Confirm Password </label>
<input class="form-control" type="password" name="confirmpassword" autocomplete="off" required
/>
</div>

<button type="submit" name="signup" class="btn btn-danger" id="submit">Register Now </button>

</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- CONTENT-WRAPPER SECTION END-->
<?php include('includes/footer.php');?>
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</body>
</html>

● Change password:
<?php
session_start();
include('includes/config.php');
error_reporting(0);
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{
if(isset($_POST['change']))
{
$password=md5($_POST['password']);
$newpassword=md5($_POST['newpassword']);
$email=$_SESSION['login'];
$sql ="SELECT Password FROM tblstudents WHERE EmailId=:email and Password=:password";
$query= $dbh -> prepare($sql);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query -> rowCount() > 0)
{
$con="update tblstudents set Password=:newpassword where EmailId=:email";
$chngpwd1 = $dbh->prepare($con);
$chngpwd1-> bindParam(':email', $email, PDO::PARAM_STR);
$chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR);
$chngpwd1->execute();
$msg="Your Password succesfully changed";
}
else {
$error="Your current password is wrong";
}
}

?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Online Library Management System | </title>
<!-- BOOTSTRAP CORE STYLE -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE -->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<script type="text/javascript">
function valid()
{
if(document.chngpwd.newpassword.value!= document.chngpwd.confirmpassword.value)
{
alert("New Password and Confirm Password Field do not match !!");
document.chngpwd.confirmpassword.focus();
return false;
}
return true;
}
</script>

<body>
<!------MENU SECTION START-->
<?php include('includes/header.php');?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">User Change Password</h4>
</div>
</div>
<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php echo
htmlentities($error); ?> </div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo
htmlentities($msg); ?> </div><?php }?>
<!--LOGIN PANEL START-->
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" >
<div class="panel panel-info">
<div class="panel-heading">
Change Password
</div>
<div class="panel-body">
<form role="form" method="post" onSubmit="return valid();" name="chngpwd">

<div class="form-group">
<label>Current Password</label>
<input class="form-control" type="password" name="password" autocomplete="off" required />
</div>

<div class="form-group">
<label>Enter Password</label>
<input class="form-control" type="password" name="newpassword" autocomplete="off" required />
</div>

<div class="form-group">
<label>Confirm Password </label>
<input class="form-control" type="password" name="confirmpassword" autocomplete="off" required
/>
</div>

<button type="submit" name="change" class="btn btn-info">Chnage </button>


</form>
</div>
</div>
</div>
</div>
<!---LOGIN PABNEL END-->

</div>
</div>
<!-- CONTENT-WRAPPER SECTION END-->
<?php include('includes/footer.php');?>
<!-- FOOTER SECTION END-->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</body>
</html>
<?php } ?>

● Chack_availability.php
<?php
require_once("includes/config.php");
// code user email availablity
if(!empty($_POST["emailid"])) {
$email= $_POST["emailid"];
if (filter_var($email, FILTER_VALIDATE_EMAIL)===false) {

echo "error : You did not enter a valid email.";


}
else {
$sql ="SELECT EmailId FROM tblstudents WHERE EmailId=:email";
$query= $dbh -> prepare($sql);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query -> rowCount() > 0)
{
echo "<span style='color:red'> Email already exists .</span>";
echo "<script>$('#submit').prop('disabled',true);</script>";
} else{

echo "<span style='color:green'> Email available for Registration .</span>";


echo "<script>$('#submit').prop('disabled',false);</script>";
}
}
}
?>

● Issued books:
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{

?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Online Library Management System | Issued Books</title>
<!-- BOOTSTRAP CORE STYLE -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE -->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- DATATABLE STYLE -->
<link href="assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
<!-- CUSTOM STYLE -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />

</head>
<body>
<!------MENU SECTION START-->
<?php include('includes/header.php');?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">Manage Issued Books</h4>
</div>

<div class="row">
<div class="col-md-12">
<!-- Advanced Tables -->
<div class="panel panel-default">
<div class="panel-heading">
Issued Books
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover"
id="dataTables-example">
<thead>
<tr>
<th>#</th>
<th>Book Name</th>
<th>ISBN </th>
<th>Issued Date</th>
<th>Return Date</th>
<th>Fine in(USD)</th>
</tr>
</thead>
<tbody>
<?php
$sid=$_SESSION['stdid'];
$sql="SELECT
tblbooks.BookName,tblbooks.ISBNNumber,tblissuedbookdetails.IssuesDate,tblissuedbookdetails.Return
Date,tblissuedbookdetails.id as rid,tblissuedbookdetails.fine from tblissuedbookdetails join
tblstudents on tblstudents.StudentId=tblissuedbookdetails.StudentId join tblbooks on
tblbooks.id=tblissuedbookdetails.BookId where tblstudents.StudentId=:sid order by
tblissuedbookdetails.id desc";
$query = $dbh -> prepare($sql);
$query-> bindParam(':sid', $sid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr class="odd gradeX">
<td class="center"><?php echo htmlentities($cnt);?
></td>
<td class="center"><?php echo htmlentities($result-
>BookName);?></td>
<td class="center"><?php echo htmlentities($result-
>ISBNNumber);?></td>
<td class="center"><?php echo htmlentities($result-
>IssuesDate);?></td>
<td class="center"><?php if($result->ReturnDate=="")
{?>
<span style="color:red">
<?php echo htmlentities("Not Return Yet"); ?>
</span>
<?php } else {
echo htmlentities($result->ReturnDate);
}
?></td>
<td class="center"><?php echo htmlentities($result-
>fine);?></td>

</tr>
<?php $cnt=$cnt+1;}} ?>
</tbody>
</table>
</div>

</div>
</div>
<!--End Advanced Tables -->
</div>
</div>

</div>
</div>
</div>

<!-- CONTENT-WRAPPER SECTION END-->


<?php include('includes/footer.php');?>
<!-- FOOTER SECTION END-->
<!-- JAVASCRIPT FILES PLACED AT THE BOTTOM TO REDUCE THE LOADING TIME -->
<!-- CORE JQUERY -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.js"></script>
<!-- DATATABLE SCRIPTS -->
<script src="assets/js/dataTables/jquery.dataTables.js"></script>
<script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>

</body>
</html>
<?php } ?>

● Listed books:

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{

?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Online Library Management System | Issued Books</title>
<!-- BOOTSTRAP CORE STYLE -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE -->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- DATATABLE STYLE -->
<link href="assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
<!-- CUSTOM STYLE -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />

</head>
<body>
<!------MENU SECTION START-->
<?php include('includes/header.php');?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">Manage Issued Books</h4>
</div>

<div class="row">
<div class="col-md-12">
<!-- Advanced Tables -->
<div class="panel panel-default">
<div class="panel-heading">
Issued Books
</div>
<div class="panel-body">
<?php $sql = "SELECT
tblbooks.BookName,tblcategory.CategoryName,tblauthors.AuthorName,tblbooks.ISBNNumber,tblbooks.BookPric
e,tblbooks.id as bookid,tblbooks.bookImage,tblbooks.isIssued from tblbooks join tblcategory on
tblcategory.id=tblbooks.CatId join tblauthors on tblauthors.id=tblbooks.AuthorId";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<div class="col-md-4" style="float:left; height:300px;">

<img src="admin/bookimg/<?php echo htmlentities($result->bookImage);?>" width="100">


<br /><b><?php echo htmlentities($result->BookName);?
></b><br />
<?php echo htmlentities($result->CategoryName);?><br
/>
<?php echo htmlentities($result->AuthorName);?><br />
<?php echo htmlentities($result->ISBNNumber);?><br />
<?php if($result->isIssued=='1'): ?>
<p style="color:red;">Book Already issued</p>
<?php endif;?>
</div>

<?php $cnt=$cnt+1;}} ?>

</div>
</div>
<!--End Advanced Tables -->
</div>
</div>

</div>
</div>
</div>

<!-- CONTENT-WRAPPER SECTION END-->


<?php include('includes/footer.php');?>
<!-- FOOTER SECTION END-->
<!-- JAVASCRIPT FILES PLACED AT THE BOTTOM TO REDUCE THE LOADING TIME -->
<!-- CORE JQUERY -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.js"></script>
<!-- DATATABLE SCRIPTS -->
<script src="assets/js/dataTables/jquery.dataTables.js"></script>
<script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>

</body>
</html>
<?php } ?>

● Logout:
<?php
session_start();
session_destroy(); // destroy session
header("location:index.php");
?>

My_profile:
<?php
session_start();
include('includes/config.php');
error_reporting(0);
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{
if(isset($_POST['update']))
{
$sid=$_SESSION['stdid'];
$fname=$_POST['fullanme'];
$mobileno=$_POST['mobileno'];

$sql="update tblstudents set FullName=:fname,MobileNumber=:mobileno where StudentId=:sid";


$query = $dbh->prepare($sql);
$query->bindParam(':sid',$sid,PDO::PARAM_STR);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':mobileno',$mobileno,PDO::PARAM_STR);
$query->execute();

echo '<script>alert("Your profile has been updated")</script>';


}

?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<![endif]-->
<title>Online Library Management System | Student Signup</title>
<!-- BOOTSTRAP CORE STYLE -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE -->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />

</head>
<body>
<!------MENU SECTION START-->
<?php include('includes/header.php');?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">My Profile</h4>

</div>

</div>
<div class="row">

<div class="col-md-9 col-md-offset-1">


<div class="panel panel-danger">
<div class="panel-heading">
My Profile
</div>
<div class="panel-body">
<form name="signup" method="post">
<?php
$sid=$_SESSION['stdid'];
$sql="SELECT StudentId,FullName,EmailId,MobileNumber,RegDate,UpdationDate,Status from
tblstudents where StudentId=:sid ";
$query = $dbh -> prepare($sql);
$query-> bindParam(':sid', $sid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>

<div class="form-group">
<label>Student ID : </label>
<?php echo htmlentities($result->StudentId);?>
</div>

<div class="form-group">
<label>Reg Date : </label>
<?php echo htmlentities($result->RegDate);?>
</div>
<?php if($result->UpdationDate!=""){?>
<div class="form-group">
<label>Last Updation Date : </label>
<?php echo htmlentities($result->UpdationDate);?>
</div>
<?php } ?>

<div class="form-group">
<label>Profile Status : </label>
<?php if($result->Status==1){?>
<span style="color: green">Active</span>
<?php } else { ?>
<span style="color: red">Blocked</span>
<?php }?>
</div>

<div class="form-group">
<label>Enter Full Name</label>
<input class="form-control" type="text" name="fullanme" value="<?php echo htmlentities($result-
>FullName);?>" autocomplete="off" required />
</div>

<div class="form-group">
<label>Mobile Number :</label>
<input class="form-control" type="text" name="mobileno" maxlength="10" value="<?php echo
htmlentities($result->MobileNumber);?>" autocomplete="off" required />
</div>

<div class="form-group">
<label>Enter Email</label>
<input class="form-control" type="email" name="email" id="emailid" value="<?php echo
htmlentities($result->EmailId);?>" autocomplete="off" required readonly />
</div>
<?php }} ?>

<button type="submit" name="update" class="btn btn-primary" id="submit">Update Now </button>

</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- CONTENT-WRAPPER SECTION END-->
<?php include('includes/footer.php');?>
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</body>
</html>
<?php } ?>

● User_forgot_password:
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(isset($_POST['change']))
{
$email=$_POST['email'];
$mobile=$_POST['mobile'];
$newpassword=md5($_POST['newpassword']);
$sql ="SELECT EmailId FROM tblstudents WHERE EmailId=:email and MobileNumber=:mobile";
$query= $dbh -> prepare($sql);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> bindParam(':mobile', $mobile, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query -> rowCount() > 0)
{
$con="update tblstudents set Password=:newpassword where EmailId=:email and
MobileNumber=:mobile";
$chngpwd1 = $dbh->prepare($con);
$chngpwd1-> bindParam(':email', $email, PDO::PARAM_STR);
$chngpwd1-> bindParam(':mobile', $mobile, PDO::PARAM_STR);
$chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR);
$chngpwd1->execute();
echo "<script>alert('Your Password succesfully changed');</script>";
}
else {
echo "<script>alert('Email id or Mobile no is invalid');</script>";
}
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Online Library Management System | Password Recovery </title>
<!-- BOOTSTRAP CORE STYLE -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE -->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'
type='text/css' />
<script type="text/javascript">
function valid()
{
if(document.chngpwd.newpassword.value!= document.chngpwd.confirmpassword.value)
{
alert("New Password and Confirm Password Field do not match !!");
document.chngpwd.confirmpassword.focus();
return false;
}
return true;
}
</script>

</head>
<body>
<!------MENU SECTION START-->
<?php include('includes/header.php');?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">User Password Recovery</h4>
</div>
</div>

<!--LOGIN PANEL START-->


<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" >
<div class="panel panel-info">
<div class="panel-heading">
LOGIN FORM
</div>
<div class="panel-body">
<form role="form" name="chngpwd" method="post" onSubmit="return valid();">

<div class="form-group">
<label>Enter Reg Email id</label>
<input class="form-control" type="email" name="email" required autocomplete="off" />
</div>

<div class="form-group">
<label>Enter Reg Mobile No</label>
<input class="form-control" type="text" name="mobile" required autocomplete="off" />
</div>

<div class="form-group">
<label>Password</label>
<input class="form-control" type="password" name="newpassword" required autocomplete="off" />
</div>

<div class="form-group">
<label>ConfirmPassword</label>
<input class="form-control" type="password" name="confirmpassword" required autocomplete="off"
/>
</div>

<button type="submit" name="change" class="btn btn-info">Chnage Password</button> | <a


href="index.php">Login</a>
</form>
</div>
</div>
</div>
</div>
<!---LOGIN PABNEL END-->

</div>
</div>
<!-- CONTENT-WRAPPER SECTION END-->
<?php include('includes/footer.php');?>
<!-- FOOTER SECTION END-->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>

</body>
</html>

● Header:
<div class="navbar navbar-inverse set-radius-zero" >
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" >

<img src="assets/img/logo.png" />


</a>

</div>
<?php if($_SESSION['login'])
{
?>
<div class="right-div">
<a href="logout.php" class="btn btn-danger pull-right">LOG ME OUT</a>
</div>
<?php }?>
</div>
</div>
<!-- LOGO HEADER END-->
<?php if($_SESSION['login'])
{
?>
<section class="menu-section">
<div class="container">
<div class="row ">
<div class="col-md-12">
<div class="navbar-collapse collapse ">
<ul id="menu-top" class="nav navbar-nav navbar-right">
<li><a href="dashboard.php" class="menu-top-
active">DASHBOARD</a></li>
<li><a href="issued-books.php">Issued Books</a></li>
<li>
<a href="#" class="dropdown-toggle" id="ddlmenuItem" data-
toggle="dropdown"> Account <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu" role="menu" aria-
labelledby="ddlmenuItem">
<li role="presentation"><a role="menuitem" tabindex="-1"
href="my-profile.php">My Profile</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1"
href="change-password.php">Change Password</a></li>
</ul>
</li>

</ul>
</div>
</div>

</div>
</div>
</section>
<?php } else { ?>
<section class="menu-section">
<div class="container">
<div class="row ">
<div class="col-md-12">
<div class="navbar-collapse collapse ">
<ul id="menu-top" class="nav navbar-nav navbar-right">

<li><a href="index.php">Home</a></li>
<li><a href="index.php#ulogin">User Login</a></li>
<li><a href="signup.php">User Signup</a></li>

<li><a href="adminlogin.php">Admin Login</a></li>

</ul>
</div>
</div>

</div>
</div>
</section>
<?php } ?>

● Config.php
● <?php

● // DB credentials.

● define('DB_HOST','localhost');

● define('DB_USER','root');

● define('DB_PASS','');

● define('DB_NAME','library');

● // Establish database connection.

● try

● {

● $dbh = new PDO("mysql:host=".DB_HOST.";dbname=".DB_NAME,DB_USER,


DB_PASS,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"));
● }

● catch (PDOException $e)

● {

● exit("Error: " . $e->getMessage());

● }

● ?>

● Footer:
<section class="footer-section">
<div class="container">
<div class="row">
<div class="col-md-12">
&copy; <?php echo date('Y');?> Online Library Management System</a>
</div>

</div>
</div>
</section>
SNAPSHOTS

⮚ Index page:

User_Login_Page:
⮚ User signup page:

⮚ Admin Login Page:


⮚ User dashboard:

⮚ My_profile_page:
⮚ Manage issued book page:

⮚ Admin Dashboard:
⮚ Manage category page:

⮚ Add category:
⮚ Manage author page:

⮚ Add_book_page:
⮚ Manage books page:

⮚ Issue book:
⮚ Manage issued books:

⮚ Manage_registerd_student:
Conclusion
This project mainly focused on how we improve the traditional
method of working of a library because the traditional method
including doing all the things in manual mode which is slow less
efficient less secure and difficult to manage this solution to this is an
online library management system which takes care of all the work by
automating and digitalizing the whole process our application is based
on php and it is linked to a relational database the front end part has
been coded using php. The back end is supported and connected with
database using php. With the increase in the workload of library new
features can be added to existing application to make it relevant in
future as well.

You might also like