You are on page 1of 33

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

“Jnana Sangama”, Belagavi-590018

2023-2024

A Mini Project Report


on
“BANK MANAGEMENT SYSTEM”
SUBMITTED FOR THE REQUIREMENT OF THE V SEMESTER
DATABASE MANAGEMENT SYSTEM WITH MINI PROJECT LAB
(21CSL55)

BACHELOR OF ENGINEERING
in
INFORMATION SCIENCE & ENGINEERING

Submitted by
ADITHYA N KASHYAP (1AM21IS006)

Under the Guidance of


Ms. POONAM SIDDARKAR
Assistant Professor, Dept. of ISE

AMC ENGINEERING COLLEGE


DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING
18thK.M. Bannerghatta Main Road, Bengaluru-560083
AMC ENGINEERING COLLEGE
18 K.M. Bannerghatta Main Road Bengaluru – 560083
th

CERTIFICATE

This is to certify that the DBMS Mini Project work entitled “BANK MANAGEMENT
SYSTEM” carried out by Adithya N Kashyap (1AM21IS006) is a bonafide student of
AMC Engineering College in partial fulfilment of the requirement of V semester (Database
Management System With Mini Project) Bachelor of Engineering in Information Science
and Engineering, Visvesvaraya Technological University, Belagavi, during the year 2023 –
2024. It is certified that all corrections/suggestions indicated for Internal Assessment have
been incorporated in the Report deposited in the departmental library. The Mini Project
report has been approved as it satisfies the academic requirements in respect of the DBMS
Mini Project work prescribed for the said degree.

Signature of the Guide Signature of the HOD Signature of the Principal


Ms. Poonam Siddarkar Dr. R Amutha Dr. K Kumar
Assistant Professor, Dept. of ISE Professor & HOD, Dept of ISE Principal, AMCEC

External Viva

Name of the examiners Signature with date

1.

2. ___________________
________________
AMC ENGINEERING COLLEGE
18 K.M. Bannerghatta Main Road Bengaluru – 560083
th

DECLARATION

I, Adithya N Kashyap (1AM21IS006), student of V semester of BE, Information Science


and Engineering, AMC Engineering College hereby declare that the DBMS Mini project
work entitled “BANK MANAGEMENT SYSTEM” has been carried out by me at AMC
Engineering College, Bengaluru and submitted in partial fulfilment of the course
requirements of Bachelor of Engineering in Information Science and Engineering of
Visvesvaraya Technological University, Belagavi, during the academic year 2023-2024. I
also declare that to the best of my knowledge and belief, the work reported here does not
from part of any other dissertation on the basis of which a degree or an award was conferred
on an earlier occasion on this by any other student.

Date:
Place: Bengaluru

ADITHYA N KASHYAP
(1AM21IS006)
ACKNOWLEDGEMENT

It gives me immense pleasure to present before you my DBMS Mini project titled
“BANK MANAGEMENT SYSTEM “. The joy and satisfaction that accompany the
successful completion of any task would be incomplete without the mention of those who
made it possible. I am glad to express my gratitude towards my prestigious institution AMC
ENGINEERING COLLEGE for providing me with utmost knowledge, encouragement and
the maximum facilities in undertaking this DBMS Mini Project.
First of all, I would like to thank the Management of AMC Engineering College for
providing such a healthy environment for the successful completion of the DBMS Mini
Project Work.

In this regard, I express our sincere gratitude to Dr. K. Kumar, P r i n c i p a l A M C


E n g i n e e r i n g C o l l e g e for providing us all the facilities in this college.

I express my deepest gratitude and special thanks to Dr. R. Amutha., Professor &
H.O.D, Dept. of Information Science and Engineering, for all her guidance and
encouragement.

I sincerely acknowledge the guidance and constant encouragement of my DBMS Mini


Project guide, Ms. Poonam Siddarkar, Assistant Prof., Dept. of Information Science and
Engineering.

ADITHYA N KASHYAP
(1AM21IS006)
ABSTRACT

The objective of this mini project was to develop a bank management system for bank
customers and administrator to manage bank accounts. The project has been planned to have
the view of distributed architecture, with centralized storage of the database. This system is an
online application that can be accessed throughout the organization and outside as well with
proper login provided. This application can simulate real -world bank activities. It allows bank
customers to make virtual bank transactions, view bank transactions, manage their accounts
and send messages to the administrators.
For the bank administrators, this application allows the managing of bank customers’
account, viewing bank history, adding virtual money to a certain account and replying bank
customers’ messages. Through the optimized combination of functional modules to achieve
various management details, the management process will achieve the best degree of
automation, and error rate in the accounts will be minimized. It includes a one-click installer
that allows us to set up our system in under 5 minutes without any technical skills. It was
designed to be elegant, quick, and powerful. The project has a simple and pleasant user
interface with the help of Bootstrap Framework v4. It also consists of user-friendly features
and functionalities. Account transfers, Account opening form, account statements, branches,
deposits and withdrawals, loans, feedback from customers and other basic banking
capabilities are includedwith Bank Management System.
TABLE OF CONTENTS

Sl Title Page
No. No

1 INTRODUCTION
PURPOSE
1
BENEFITS

2 SYSTEM REQUIREMENTS
HARDWARE CONFIGURATION
2
SOFTWARE CONFIGURATION

SYSTEM DESIGN AND MODELING


3
3.1 CONTROL FLOWDIAGRAM 3
3.2 ENTITY RELATIONSHIP DIAGRAM 4

3.3 ENTITY RELATIONSHIP MODEL 5

4 IMPLEMENTATION
4.1 SOURCECODE 6

5 SCREENSHOTS 21
CONCLUSION 26
REFERENCES 27
LIST OF FIGURES

Figure No. Title Page No.


3.1 CONTROL FLOW DIAGRAM 3
3.2 ENTITY RELATIONSHIP DIAGRAM 4
3.3 SCHEMA DIAGRAM 5
5.1 LOGIN PAGE 21
5.2 ADMIN SECTION 21
5.3 AVAILABLE BOOKS 22
5.4 ADDING NEW BOOK 22
5.5 ISSUE, RETURN, RENEW VIEW PAGE 23
5.6 STUDENT SECTION 23
5.7 REQUEST ISSUE 24
5.8 RETURN, RENEW 24
BANK MANAGEMENT SYSTEM

CHAPTER 1

INTRODUCTION

PURPOSE AND SCOPE


A bank management system serves several purposes aimed at efficiently managing the
operations and resources of a bank. Some of the key purposes include:
 Customer Management: It helps in managing customer accounts, including account
opening, closing, updating customer information, and maintaining transaction
histories.
 Account Management: This system handles various types of accounts such as
savings, checking, loans, and investments. It facilitates account activities like deposits,
withdrawals, transfers, and balance inquiries.
 Transaction Processing: It processes transactions efficiently, ensuring accuracy and
security. This includes handling electronic funds transfers, bill payments, and other
financial transactions.
 Risk Management: Banks deal with various risks such as credit risk, market risk,
operational risk, and compliance risk. The management system helps in identifying,
assessing, and mitigating these risks to protect the bank's assets and reputation.
 Financial Reporting: It generates reports on financial performance, liquidity,
profitability, and regulatory compliance. These reports help in decision-making,
monitoring financial health, and meeting regulatory requirements.
 Security and Compliance: Ensures data security and compliance with regulatory
requirements such as Know Your Customer (KYC), Anti-Money Laundering (AML),
and Basel III regulations.
 Customer Service: Provides tools for customer service representatives to assist
customers with inquiries, issue resolution, and account management.
 Technology Integration: Integrates with various banking technologies such as online
banking, mobile banking, ATMs, and payment systems to provide seamless services to
customers.
 Efficiency and Cost Reduction: By automating processes and streamlining
operations, the bank management system helps in improving efficiency and reducing
operational costs.

Dept of ISE, AMCEC 2023-2024 1


BANK MANAGEMENT SYSTEM

CHAPTER 2

SYSTEM REQUIREMENTS

HARDWARE CONFIGURATION:

System PentiumDualCore
HardDisk 120 GB
RAM 1GB

SOFTWARE CONFIGURATION:

Operating WindowsXP/7/10.
System
Language PHP/JavaScript
Server XAMPP
IDE Visual Studio

Dept of ISE, AMCEC 2023-2024 2


BANK MANAGEMENT SYSTEM

CHAPTER 3

SYSTEM DESIGN AND MODELLING

3.1 CONTROL FLOW DIAGRAM

Fig.3.1 Data Flow Diagram

Dept of ISE, AMCEC 2023-2024 3


BANK MANAGEMENT SYSTEM

3.2 ENTITY REALTIONSHIP DIAGRAM

Fig.3.2 Entity Relationship Diagram

Dept of ISE, AMCEC 2023-2024 4


BANK MANAGEMENT SYSTEM

3.3 SCHEMA DIAGRAM

Fig. 3.3 Schema Diagram

Dept of ISE, AMCEC 2023-2024 5


LIBRARY MANAGEMENT SYSTEM

CHAPTER 4

IMPLEMENTATION

4.1 SOURCE CODE

HOME PAGE
<?php
require('dbconn.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>ISE library management system</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Library Member Login Form Widget Responsive, Login Form
Web Template, Flat Pricing Tables, Flat Drop-Downs, Sign-Up Web Templates, Flat Web
Templates, Login Sign-up Responsive Web Template, Smartphone Compatible Web Template,
Free Web Designs for Nokia, Samsung, LG, Sony Ericsson, Motorola Web Design" />
<script type="application/x-javascript">addEventListener("load", function()
{ setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<link href="//fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"
rel="stylesheet">
</head>
<body>
<h1>ISE LIBRARY</h1>
<div class="container">
<div class="login">
<h2>Sign In</h2>
<form action="index.php" method="post">

Dept of ISE, AMCEC 2022-2023 6


LIBRARY MANAGEMENT SYSTEM

<input type="text" Name="RollNo" placeholder="RollNo" required="">


<input type="password" Name="Password" placeholder="Password" required="">
<div class="send-button">
<input type="submit" name="signin"; value="Sign In">
</form>
</div>
<div class="clear"></div>
</div>
<div class="register">
<h2>Sign Up</h2>
<form action="index.php" method="post">
<input type="text" Name="Name" placeholder="Name" required>
<input type="text" Name="Email" placeholder="Email" required>
<input type="password" Name="Password" placeholder="Password" required>
<input type="text" Name="PhoneNumber" placeholder="Phone Number" >
<input type="text" Name="RollNo" placeholder="Roll Number" required="">
<select name="Category" id="Category">
<option value="GEN">General</option>
</select>
<br>
<br>
<div class="send-button">
<input type="submit" name="signup" value="Sign Up">
</form>
</div>
<p>By creating an account, you agree to our <a class="underline">Terms</a></p>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="footer w3layouts agileits">
<p>&copy; 2022 Library Member Login. All Rights Reserved </a></p>
<p><a class="underline" href="about.html">About the Project</a></p>

Dept of ISE, AMCEC 2022-2023 7


LIBRARY MANAGEMENT SYSTEM

</div>
<?php
if(isset($_POST['signin']))
{$u=$_POST['RollNo'];
$p=$_POST['Password'];
$sql="select * from LMS.user where RollNo='$u'";
$result = $conn->query($sql);
$row = $result->fetch_assoc();
$x=$row['Password'];
$y=$row['Type'];
if(strcasecmp($x,$p)==0 && !empty($u) && !empty($p))
{//echo "Login Successful";
$_SESSION['RollNo']=$u;
if($y=='Admin')
header('location:admin/index.php');
else
header('location:student/index.php');
}
else
{
echo "<script type='text/javascript'>alert('Failed to Login! Incorrect RollNo or
Password')</script>";
}
}
if(isset($_POST['signup']))
{
$name=$_POST['Name'];
$email=$_POST['Email'];
$password=$_POST['Password'];
$mobno=$_POST['PhoneNumber'];
$rollno=$_POST['RollNo'];
$category=$_POST['Category'];
$type='Student';

Dept of ISE, AMCEC 2022-2023 8


LIBRARY MANAGEMENT SYSTEM

$sql="insert into LMS.user (Name,Type,Category,RollNo,EmailId,MobNo,Password)


values ('$name','$type','$category','$rollno','$email','$mobno','$password')";
if ($conn->query($sql) === TRUE)
{
echo "<script type='text/javascript'>alert('Registration Successful')</script>";
}
else
{
//echo "Error: " . $sql . "<br>" . $conn->error;
echo "<script type='text/javascript'>alert('User Exists')</script>";
}
}
?>
</body>
</html>

ADMIN HOME PAGE

<?php
require('dbconn.php');
?>
<?php
if ($_SESSION['RollNo']) {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LMS</title>
<link type="text/css" href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link type="text/css" href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link type="text/css" href="css/theme.css" rel="stylesheet">
<link type="text/css" href="images/icons/css/font-awesome.css" rel="stylesheet">

Dept of ISE, AMCEC 2022-2023 9


LIBRARY MANAGEMENT SYSTEM

<link type="text/css"
href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600'
rel='stylesheet'>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btnbtn-navbar" data-toggle="collapse" data-target=".navbar-inverse-collapse">
<i class="icon-reorder shaded"></i></a><a class="brand" href="index.php">AMC ISE
LIBRARY MANAGEMENT</a>
<ul class="nav pull-right">
<li class="nav-user dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">
<imgsrc="images/user.png" class="nav-avatar" />
<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="index.php">Your Profile</a></li>
<li><a href="edit_admin_details.php">Edit Profile</a></li>
<li class="divider"></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="wrapper">
<div class="container">
<div class="row">
<div class="span3">
<div class="sidebar">
<ul class="widget widget-menu unstyled">

Dept of ISE, AMCEC 2022-2023 10


LIBRARY MANAGEMENT SYSTEM

<li class="active"><a href="index.php"><i class="menu-icon icon-home"></i>Home


</a></li>
<li><a href="message.php"><i class="menu-icon icon-inbox"></i>Messages</a>
</li>
<li><a href="student.php"><i class="menu-icon icon-user"></i>Manage Students </a>
</li>
<li><a href="book.php"><i class="menu-icon icon-book"></i>All Books </a></li>
<li><a href="addbook.php"><i class="menu-icon icon-edit"></i>Add Books </a></li>
<li><a href="requests.php"><i class="menu-icon icon-tasks"></i>Issue/Return Requests
</a></li>
<li><a href="recommendations.php"><i class="menu-icon icon-list"></i>Book
Recommendations </a></li>
<li><a href="current.php"><i class="menu-icon icon-list"></i>Currently Issued Books </a></li>
</ul>
<ul class="widget widget-menu unstyled">
<li><a href="logout.php"><i class="menu-icon icon-signout"></i>Logout
</a></li>
</ul>
</div>
</div>
<div class="span9">
<center>
<div class="card" style="width: 50%;">
<img class="card-img-top" src="images/profile2.png" alt="Card image cap">
<div class="card-body">
<?php
$rollno = $_SESSION['RollNo'];
$sql="select * from LMS.user where RollNo='$rollno'";
$result=$conn->query($sql);
$row=$result->fetch_assoc();
$name=$row['Name'];
$category=$row['Category'];
$email=$row['EmailId'];

Dept of ISE, AMCEC 2022-2023 11


LIBRARY MANAGEMENT SYSTEM

$mobno=$row['MobNo'];
?>
<i>
<h1 class="card-title"><center><?php echo $name ?></center></h1>
<br>
<p><b>Email ID: </b><?php echo $email ?></p>
<br>
<p><b>Mobile number: </b><?php echo $mobno ?></p>
</b>
</i>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<b class="copyright">&copy; 2023 Library Management System </b>
</div>
</div>
<!--/.wrapper-->
<script src="scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="scripts/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="scripts/flot/jquery.flot.js" type="text/javascript"></script>
<script src="scripts/flot/jquery.flot.resize.js" type="text/javascript"></script>
<script src="scripts/datatables/jquery.dataTables.js" type="text/javascript"></script>
<script src="scripts/common.js" type="text/javascript"></script>
</body>
</html>
<?php }

Dept of ISE, AMCEC 2022-2023 12


LIBRARY MANAGEMENT SYSTEM

else {
echo "<script type='text/javascript'>alert('Access Denied!!!')</script>";
} ?>

STUDENT HOME PAGE


<?php
require('dbconn.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LMS</title>
<link type="text/css" href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link type="text/css" href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link type="text/css" href="css/theme.css" rel="stylesheet">
<link type="text/css" href="images/icons/css/font-awesome.css" rel="stylesheet">
<link type="text/css"
href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600'
rel='stylesheet'>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btnbtn-navbar" data-toggle="collapse" data-target=".navbar-inverse-collapse">
<i class="icon-reorder shaded"></i></a><a class="brand" href="index.php">AMC ISE
LIBRARY MANAGEMENT</a>
<div class="nav-collapse collapse navbar-inverse-collapse">
<ul class="nav pull-right">
<li class="nav-user dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">
<imgsrc="images/user.png" class="nav-avatar" />

Dept of ISE, AMCEC 2022-2023 13


LIBRARY MANAGEMENT SYSTEM

<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="index.php">Your Profile</a></li>
<li><a href="edit_student_details.php">Edit Profile</a></li>
<li class="divider"></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="wrapper">
<div class="container">
<div class="row">
<div class="span3">
<div class="sidebar">
<ul class="widget widget-menu unstyled">
<li class="active"><a href="index.php"><i class="menu-icon icon-home"></i>Home
</a></li>
<li><a href="message.php"><i class="menu-icon icon-inbox"></i>Messages</a>
</li>
<li><a href="book.php"><i class="menu-icon icon-book"></i>All Books </a></li>
<li><a href="history.php"><i class="menu-icon icon-tasks"></i>Previously Borrowed Books
</a></li>
<li><a href="recommendations.php"><i class="menu-icon icon-list"></i>Recommend Books
</a></li>
<li><a href="current.php"><i class="menu-icon icon-list"></i>Currently Issued Books </a></li>
</ul>
<ul class="widget widget-menu unstyled">
<li><a href="logout.php"><i class="menu-icon icon-signout"></i>Logout </a></li>
</ul>

Dept of ISE, AMCEC 2022-2023 14


LIBRARY MANAGEMENT SYSTEM

</div>
<!--/.sidebar-->
</div>
<!--/.span3-->
<div class="span9">
<center>
<div class="card" style="width: 50%;">
<img class="card-img-top" src="images/profile2.png" alt="Card image cap">
<div class="card-body">
<?php
$rollno = $_SESSION['RollNo'];
$sql="select * from LMS.user where RollNo='$rollno'";
$result=$conn->query($sql);
$row=$result->fetch_assoc();
$name=$row['Name'];
$category=$row['Category'];
$email=$row['EmailId'];
$mobno=$row['MobNo'];
?>
<i>
<h1 class="card-title"><center><?php echo $name ?></center></h1>
<br>
<p><b>Email ID: </b><?php echo $email ?></p>
<br>
<p><b>Roll No: </B><?php echo $rollno ?></p>
<br>
<p><b>Category: </b><?php echo $category ?></p>
<br>
<p><b>Mobile number: </b><?php echo $mobno ?></p>
</b>
</i>
</div>
</div>

Dept of ISE, AMCEC 2022-2023 15


LIBRARY MANAGEMENT SYSTEM

<br>
</div>
<!--/.span9-->
</div>
</div>
<!--/.container-->
</div>
<div class="footer">
<div class="container">
<b class="copyright">&copy; 2023 Library Management System </b>
</div>
</div>
<!--/.wrapper-->
<script src="scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="scripts/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="scripts/flot/jquery.flot.js" type="text/javascript"></script>
<script src="scripts/flot/jquery.flot.resize.js" type="text/javascript"></script>
<script src="scripts/datatables/jquery.dataTables.js" type="text/javascript"></script>
<script src="scripts/common.js" type="text/javascript"></script>
</body>
</html>

AUTHOR DATABASE
DROP TABLE IF EXISTS `author`;

CREATE TABLE `author` (


`BookId` Int(10) NOT NULL,
`Author` varchar(50) NOT NULL,
PRIMARY KEY (`BookId`,`Author`),
CONSTRAINT `author_ibfk_1` FOREIGN KEY (`BookId`) REFERENCES `book` (`BookId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Dept of ISE, AMCEC 2022-2023 16


LIBRARY MANAGEMENT SYSTEM

BOOK DATABASE
DROP TABLE IF EXISTS `book`;

CREATE TABLE `book` (


`BookId` int(10) NOT NULL AUTO_INCREMENT,
`Title` varchar(50) DEFAULT NULL,
`Publisher` varchar(50) DEFAULT NULL,
`Year` varchar(50) DEFAULT NULL,
`Availability` int(5) DEFAULT NULL,
PRIMARY KEY (`BookId`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;

MESSAGE DATABASE
DROP TABLE IF EXISTS `message`;

CREATE TABLE `message` (


`M_Id` int(10) NOT NULL AUTO_INCREMENT,
`RollNo` varchar(50) DEFAULT NULL,
`Msg` varchar(255) DEFAULT NULL,
`Date` date DEFAULT NULL,
`Time` time DEFAULT NULL,
PRIMARY KEY (`M_Id`),
KEY `RollNo` (`RollNo`),
CONSTRAINT `message_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user` (`RollNo`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=latin1;

Dept of ISE, AMCEC 2022-2023 17


LIBRARY MANAGEMENT SYSTEM

RECOMMENDATIONS DATABASE

DROP TABLE IF EXISTS `recommendations`;

CREATE TABLE `recommendations` (


`R_ID` int(10) NOT NULL AUTO_INCREMENT,
`Book_Name` varchar(50) DEFAULT NULL,
`Description` varchar(255) DEFAULT NULL,
`RollNo` varchar(50) DEFAULT NULL,
PRIMARY KEY (`R_ID`),
KEY `RollNo` (`RollNo`),
CONSTRAINT `recommendations_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user`
(`RollNo`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;

RECORD DATABASE
DROP TABLE IF EXISTS `record`;

CREATE TABLE `record` (


`RollNo` varchar(50) NOT NULL,
`BookId` int(10) NOT NULL,
`Date_of_Issue` date DEFAULT NULL,
`Due_Date` date DEFAULT NULL,
`Date_of_Return` date DEFAULT NULL,
`Dues` int(10) DEFAULT NULL,
Renewals_left` int(10) DEFAULT NULL,
`Time` time DEFAULT NULL,
PRIMARY KEY (`RollNo`,`BookId`),
KEY `BookId` (`BookId`),
CONSTRAINT `record_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user` (`RollNo`),
CONSTRAINT `record_ibfk_2` FOREIGN KEY (`BookId`) REFERENCES `book` (`BookId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Dept of ISE, AMCEC 2022-2023 18


LIBRARY MANAGEMENT SYSTEM

RENEW DATABASE
DROP TABLE IF EXISTS `renew`;

CREATE TABLE `renew` (


`RollNo` varchar(50) NOT NULL,
`BookId` int(10) NOT NULL,
PRIMARY KEY (`RollNo`,`BookId`),
KEY `BookId` (`BookId`),
CONSTRAINT `renew_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user` (`RollNo`),
CONSTRAINT `renew_ibfk_2` FOREIGN KEY (`BookId`) REFERENCES `book` (`BookId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

RETURN DATABASE
DROP TABLE IF EXISTS `return`;

CREATE TABLE `return` (


`RollNo` varchar(50) NOT NULL,
`BookId` int(10) NOT NULL,
PRIMARY KEY (`RollNo`,`BookId`),
KEY `BookId` (`BookId`),
CONSTRAINT `return_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user` (`RollNo`),
CONSTRAINT `return_ibfk_2` FOREIGN KEY (`BookId`) REFERENCES `book` (`BookId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Dept of ISE, AMCEC 2022-2023 19


LIBRARY MANAGEMENT SYSTEM

USER DATABASE
DROP TABLE IF EXISTS `user`;

CREATE TABLE `user` (


`RollNo` varchar(50) NOT NULL,
`Name` varchar(50) DEFAULT NULL,
`Type` varchar(50) DEFAULT NULL,
`Category` varchar(50) DEFAULT NULL,
`EmailId` varchar(50) DEFAULT NULL,
`MobNo` bigint(11) DEFAULT NULL,
`Password` varchar(50) DEFAULT NULL,
PRIMARY KEY (`RollNo`),
UNIQUE KEY `EmailId` (`EmailId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

delete" ENGINE=InnoDB DEFAULT CHARSET=latin1" from above code

Dept of ISE, AMCEC 2022-2023 20


LIBRARY MANAGEMENT SYSTEM

CHAPTER 5
SCREEN SHOTS

 LOGIN PAGE

Fig 5.1 Login page

 ADMIN SECTION

Fig 5.2 Admin Login Page

Dept of ISE, AMCEC 2022-2023 21


LIBRARY MANAGEMENT SYSTEM

 AVAILABLE BOOKS

Fig 5.3 Available Books

 ADDING NEW BOOK

Fig 5.4 Adding New Books

Dept of ISE, AMCEC 2022-2023 22


LIBRARY MANAGEMENT SYSTEM

 ISSUE, RETURN, RENEW VIEW PAGE

Fig 5.5 ISSUE, RETURN, RENEW VIEW PAGE

 STUDENT SECTION

Fig 5.6 Student Login Page

Dept of ISE, AMCEC 2022-2023 23


LIBRARY MANAGEMENT SYSTEM

 REQUEST ISSUE

Fig 5.7 Request Issue

 RETURN, RENEW

Fig 5.8 Return,Renew

Dept of ISE, AMCEC 2022-2023 24


LIBRARY MANAGEMENT SYSTEM

CONCLUSION

The mini project LIBRARY MANAGEMENT SYSTEM is for computerizing the working in a
library. This software is efficient in maintaining effective storage of information related to books
and users. This software also reduces the work load of the librarian as all the details are stored in
the computer system and whenever the information related to particular book is required, it can be
searched and viewed on the screen.

In future, this system can be modified to be launched on a web portal for easy online entry
of students details and made available to students to login and check the availability of the books
and issue a request to get the book.

Dept of ISE, AMCEC 2022-2023 25


LIBRARY MANAGEMENT SYSTEM

REFERENCES

 Fundamentals of Database System by Elmasri.


 Fundamentals of Software Engineering by Rajib Mall.
 www.wikipedia.com
 www.youtube.com
 www.sourcecode.com
 www.pintrest.com

Dept of ISE, AMCEC 2022-2023 26

You might also like