This is a simple web application built with PHP and MySQL to manage the library records. It allows you to Create, Read, Update, and Delete Books and Friends data through a simple user interface.
- Login and logout for Admins.
- Display all Books, Friends, and Borrows in a table.
- Add new Books, Friends, and Borrows record.
- Update existing Books and Friends.
- Return the borrowed books.
- Delete Books and Friends.
- Copy the project files into your local server directory (e.g.,
htdocsfor XAMPP). - Create a new MySQL database,
zain_library_db. - Import the SQL file (
LMS_DB.sql) into the database using phpMyAdmin or the MySQL command line. - Update the database connection in
db_connect.phpif needed:$conn = mysqli_connect("localhost", "root", "", "zain_library_db"); // or $conn = new mysqli("127.0.0.1", "root", "", "zain_library_db");
- Make sure Apache and MySQL are running before accessing the project.
- This project enforces referential integrity using foreign key constraints to prevent deleting records that are linked to active borrow entries.