Library Management System — PHP Student and Staff Portal
A library site where students register, sign in, issue a book, and request a title that is not on the shelf. Staff add books, read student requests, and mark issued books as returned. The database script is included.
28 views
What this project is
Library Management System is a PHP library site for students and staff. A visitor opens the student sign-in page. A new student registers with a full name, email, semester, branch, student ID, and password. After sign-in, the student home shows their branch, semester, and the books currently issued to them.
From that desk a student can issue a title from the catalog, request a book that is not on the shelf, or change their password. An issued book is stored with the student ID, title, author, and date.
Staff sign in separately. The staff desk shows how many titles are in the catalog, how many books are out, how many requests are open, and how many students are registered. Staff can add a book, read student requests, review issued books, and mark a book returned. Staff can also change their own password.
Connection settings are in setting.php (host localhost, user root, empty password, database library). Tables are admin, students, books, issue, and request, loaded from database\library.sql. The default staff login is admin ID admin and password admin.
How to run it
Install XAMPP, copy the project folder into htdocs, start Apache and MySQL, create a database named library, and import database\library.sql. Then open the student sign-in page.
Setup steps
-
1
step -1 Install XAMPP (Apache, MariaDB or MySQL, and PHP). WAMP works the same way on Windows.
-
2
step -2 Copy the project folder into htdocs, for example htdocs/LibraryManagementSystem.
-
3
step -3 Start Apache and MySQL in the XAMPP Control Panel.
-
4
step -4 Open http://localhost/phpmyadmin.
-
5
step -5 Create a database named library.
-
6
step -6 Select that database, choose Import, and import database\library.sql.
-
7
step -7 If your MySQL user is not root with an empty password, edit the host, user, password, and database name in setting.php.
-
8
step -8 Open the student sign-in page at http://localhost/LibraryManagementSystem/index.php.
-
9
step -9 Student registration is register.php. Staff sign-in is admin.php.
-
10
step -10 Staff login shipped with the SQL file: admin ID admin, password admin.
-
11
step -11 There is no separate build step. PHP runs directly from the folder.