lms report
lms report
TUMAKURU-572105
(A Constitute College of Sri Siddartha Academy of Higher Education)
Mini-Project(CS5MP1) Report On
THEJAS K U (21CS122)
MONISH S (21CS123)
CERTIFICATE
Certified that the mini project work entitled “LIBRARY MANAGEMENT SYSTEM US-
ING PHP” is a bonafide work being carried out by THEJAS K U (21CS122),MONISH S
(21CS123) in partial fulfillment for the completion of V Semister of Bachelor of Engineer-
ing in Department of Computer Science & Engineering from Sri Siddhartha Institute of
Technology,A Constitute College of Sri Siddartha Academy of Higher Education during
the academic year 2023-24. It is certified that all corrections/suggestions indicated for
internal assessment have been incorporated in the report deposited in the department
library. The mini Project report has been approved as it satisfies the academic require-
ments in respect of mini project work prescribed for the Bachelor of Engineering degree.
THEJAS K U (21CS122)
MONISH S (21CS123)
Contents
Abstract 1
1 Introduction 2
1.1 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Aim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Literature Survey 4
2.1 Existing System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Proposed System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 Requirements 6
3.1 System Hardware: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2 Software Requirements: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 Design 8
4.1 ER Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.2 Use Case Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.3 Data Flow Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5 Source Code 10
5.1 Connection Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5.2 Login Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.3 Logout Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.4 Book Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.5 Add Book Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.6 Book Issue Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.7 Book Return Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6 Snapshots 24
6.1 Login Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Library management system 2023-24
6.2 Dashboard Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.3 View Book Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.4 Issue Book Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.5 Return Book Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.6 View User Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Conclusion 26
Bibliography 27
1
Chapter 1
Introduction
Library Management System is a comprehensive library management solution that is
suitable for both large and small libraries. Its flexible design enables Library Management
System to be installed in a range of Library organizations, ranging from public libraries,
through to academic, joint use and special libraries. This Library Management System
Software is capable of handling Books with equal ease and efficiency. This is a Windows-
based Library Management System, utilizing the latest advancements in the Information
Technology to provide and improve Library Services .As the modern organizations are
automated and computers are working as per the instruction, it becomes essential for the
coordination of human beings, commodity and computers in a modern organization. This
information helps the distributor to purchase or sell the product very efficiently.
The administrator and all other can communicate with the system through this project.
This facilitates effective implementation and monitoring of various activities of the distrib-
utor of supermarket.In traditional library management systems, there exists a significant
challenge of scalabil- ity, accessibility, and cost-effectiveness in maintaining and provid-
ing seamless access to a vast array of resources while ensuring robust security measures.
Moreover, the increasing volume of digital content and the demand for remote access to
library services require a more agile and scalable solution
2
Library management system 2023-24
1.2 Aim
1.Enhanced Accessibility: To provide ubiquitous access to library resources and ser-
vices from anywhere at any time using PHP.
2.Scalability and Flexibility: To create a system capable of accommodating the in-
creasing volume of digital content and resources while being flexible enough to adapt to
changing demands.
3.Cataloging: Organizing and cataloging books systematically within the library database.
4.Tracking and management: Keeping track of book details such as title, author,
ISBN, availability, etc. and managing book inventory, including additions, deletions, and up-
dates.
5.Improved User Experience: To enhance user satisfaction by offering intuitive inter-
faces, efficient search functionalities, and personalized services.
1.3 Objectives
1.Efficient Information Organization: Database management structuring a database
to store and manage book details, user information, borrowing history, etc
2.Data Security and Privacy: To implement robust security measures, including en-
cryption, access controls, and compliance with relevant regulations, to ensure the safety
and privacy of library resources and patron information.
3.Simplified User Experience: Providing a user-friendly interface for users and librar-
ians to navigate and manage library resources effortlessly.
4.Collaboration and Sharing: To facilitate collaboration among libraries and patrons
by enabling resource sharing and interlibrary loan services through this technology .
5.Monitoring and Maintenance: To establish monitoring mechanisms for system per-
formance, conduct regular maintenance, and ensure high availability and reliability.
6.Reduces human effort:The goal of the system is to bring down the work load with
the increased efficiency and to speed up the activities.
Early days Libraries are managed manually. It required lot of time to record or to retrieve
he details. The employees who have to record the details must perform their job very
carefully. Even a small mistake would create a lot of problems. Security of information
is very less. Report generations of all the information is very tough task. Maintenance
of Library catalogue and arrangement of the books to the catalogue is very complex
task. In addition to its maintenance of member details, issue dates and return dates etc.
4
Library management system 2023-24
manually is a complex task. All the operations must be performed in perfect manner for
the maintenance of the library with out any degradation which may finally result in the
failure of the entire system.
6
Library management system 2023-24
for webbased applications, used by high profile web properties including Facebook, Twit-
ter, YouTube, and all five of the top five websites. Additionally, it is an extremely popular
choice as embedded database, distributed by thousands of ISVs and OEMs.
4. Javascript: JavaScript is a programming language for use in HTML pages Invented
in 1995 at Netscape Corporation (LiveScript) JavaScript has nothing to do with Java
JavaScript programs are run by an interpreter built into the user’s web browser (not on
the server).
5. PHP: PHP is a server-side scripting language, it is scripts are executed on the server
and supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL
).PHP is open source software and it is free to download . It runs on different platforms
(Windows, Linux, Unix, etc.) and it is compatible with almost all servers used today
(Apache, IIS, etc.). PHP is easy to learn and runs efficiently on the server side .
6.CSS : Understand what a style sheet is and how it actually styles a web page. Know
how to create a style sheet and link an html document to the style sheet. Understand
the basic building blocks of any style sheet: rules, selectors, properties and values. Un-
derstand how to control the basic appearance of text. Demonstrate how to customize the
appearance of link Define background properties.
7. XAMPP : XAMPP is a software distribution which provides the Apache web server,
MySQL database (actually MariaDB), Php and Perl (as Command-line executables and
Apche modules) all in one package. It is available for Windows, MAC and Linux sys-
tems. No configuration is necessary to integrate Php with MySQL. It is a great fit for
this course and provides a relatively painless installation and way to manage the con-
figuration changes. Also provided is PhpMyadmin which gives a GUI tool for manag-
ing your MySQL databases. I would highly recommend installing this for Windows or
MAC. It doesn’t exclude you from other competing software installations, it just gives
an easy way to get going. For Ubuntu Linux systems, I still would recommend installing
Apache/MySQL/Php/PhpMyadmin through Ubuntu packages. The XAMPP download
site which I use is: https://www.apachefriends.org/
Design
4.1 ER Diagram
8
Library management system 2023-24
11 if (! $abc )
12 {
13 die ( " disconnect " ) ;
14 }
15 else
16 {
17 // die (" successfull ") ;
18 }
19 ?>
20 \ vspace { -1 cm }
10
Library management system 2023-24
19 if ( $rows > 0)
20 {
21
30 <? php
31
32 }
33
34 }
35
36 ?>
37
41 < head > < meta http - equiv = " Content - Type " content = " text / html ; charset = utf -8 "
>
42
43
44 < meta http - equiv = "X - UA - Compatible " content = " IE = edge " >
45 < meta name = " viewport " content = " width = device - width , initial - scale =1 ,
shrink - to - fit = no " >
46 < meta name = " description " content = " " >
47 < meta name = " author " content = " " >
48
61 < body class = " bg - dark " style = " background : url ( img / library - img - bg . jpg ) no -
repeat ; background - size : cover " >
62
83 < input type = " submit " class = " btn btn - primary btn - block " name = "
login_btn " value = " Login " >
84 </ form >
85
90
11 ?>
12
28 </ ol >
29
availability ’ ]==1) {
63 ? > < td > < span class = "
badge badge - success " > Available </ span > </ td >
64 <? php } else { ? > < td > < span class
= " badge badge - danger " > Not Available </ span > </ td >
65 <? php }
66 $id = $row [ ’ id ’ ];
67
68 $f e t c h _ i s s u e _ d e t a i l s =
mysqli_query ( $conn , " select status from tbl_issue where user_id = ’ $ids
’ and book_id = ’ $id ’" ) ;
69 $res = mysqli_fetch_row (
$fetch_issue_details );
70 if (! empty ( $res ) ) {
71 $res = $res [0];
72 }
73 if ( $res ==1) {
74 ?>
75 <td > < span class = " badge badge -
success " > Issued </ span >
76 </ td >
77 <? php
78 } else if ( $res ==2) {
79 ?>
80 <td > < span class = " badge badge -
danger " > Rejected </ span >
81 </ td >
82 <? php }
83 else if ( $res ==3) {
84 ?>
85 <td > < span class = " badge badge -
primary " > Request Sent </ span >
86 </ td >
87 <? php }
88 else { ? >
89 <td > < a href = " book - issue .
php ? id = <? php echo $row [ ’ id ’]; ? > " >< button class = " btn btn - success " >
Issue </ button > </a >
90 </ td >
25 if ( $insert_book > 0)
26 {
27 ?>
28 < script type = " text / javascript " >
29 alert ( " Book added successfully . " )
30 </ script >
31 <? php
32 }
33 }
34 ?>
35 <? php include ( ’ include / header . php ’) ; ? >
36 < div id = " wrapper " >
37 <? php include ( ’ include / side - bar . php ’) ; ? >
38
49 </ ol >
50
56 < form method = " post " class = " form - valide " >
57 < div class = " card - body " >
58 < div class = " form - group row " >
59 < label class = " col - lg -4 col - form -
label " for = " item " > Book Name < span class = " text - danger " >* </ span > </ label
>
60 < div class = " col - lg -6 " >
61 < input type = " text " name = " book_name
" id = " book_name " class = " form - control " placeholder = " Enter Book Name "
required >
62 </ div >
63 </ div >
64 < div class = " form - group row " >
65 < label class = " col - lg -4 col -
form - label " for = " leave - type " > Category < span class = " text - danger " >* </
span >
66 </ label >
67 < div class = " col - lg -6 " >
68 < select class = " form - control " id = "
category_name " name = " category_name " required >
69 < option value = " " > Select Category
</ option >
70 <? php
71 $fetch_category = mysqli_query (
$conn , " select * from tbl_category where status =1 " ) ;
72 while ( $row = my sql i_ fe tc h_ arra y
( $fetch_category ) ) {
73 ?>
74 < option > <? php echo $row [ ’
category_name ’ ]; ? > </ option >
75 <? php } ? >
76 </ select >
77 </ div >
78 </ div >
79 < div class = " form - group row " >
80 < label class = " col - lg -4 col - form -
label " for = " price " > ISBN < span class = " text - danger " >* </ span > </ label >
81 < div class = " col - lg -6 " >
82 < input type = " text " name = " isbn " id =
" isbn " class = " form - control " placeholder = " Enter ISBN " required >
83 </ div >
84 </ div >
85
107 < input type = " text " name = " quantity "
id = " quantity " class = " form - control " placeholder = " Enter Quantity "
required >
108 </ div >
109 </ div >
110 < div class = " form - group row " >
111 < label class = " col - lg -4 col -
form - label " for = " leave - type " > Location < span class = " text - danger " >* </
span >
112 </ label >
113 < div class = " col - lg -6 " >
114 < select class = " form - control " id = "
location_name " name = " location_name " required >
115 < option value = " " > Select Location
</ option >
116 <? php
117 $fetch_category = mysqli_query (
$conn , " select * from tbl_location where status =1 " ) ;
118 while ( $row = my sql i_ fe tc h_ ar ra y
( $fetch_category ) ) {
119 ?>
120 < option > <? php echo $row [ ’ name ’ ];
? > </ option >
121 <? php } ? >
122 </ select >
123 </ div >
124 </ div >
125 < div class = " form - group row " >
126 < label class = " col - lg -4 col -
form - label " for = " status " > Availability < span class = " text - danger " >* </
span >
127 </ label >
128 < div class = " col - lg -6 " >
129 < select class = " form -
control " id = " availability " name = " availability " required >
130 < option value = " " >
Select Status </ option >
131 < option value = " 1 " >
Available </ option >
151 <a class = " scroll - to - top rounded " href = " # page - top " >
152 <i class = " fas fa - angle - up " > </i >
153 </a >
154
9 {
10 ?>
11 < script type = " text / javascript " >
12 alert ( " Request sent successfully . " ) ;
13 window . location . href = " book . php " ;
14 </ script >
15 <? php
16 }
Snapshots
24
Library management system 2023-24
27
Bibliography
28