0% found this document useful (0 votes)
2 views23 pages

Project Library-System

The document outlines the creation of a Library Management System, detailing the SQL schema for various tables including 'book', 'rack', 'category', 'publisher', and 'author'. It specifies the structure of these tables, including their fields, data types, and primary keys. Additionally, it describes the file structure for the system, including database files, configuration, classes, and JavaScript files necessary for the web-based application.
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)
2 views23 pages

Project Library-System

The document outlines the creation of a Library Management System, detailing the SQL schema for various tables including 'book', 'rack', 'category', 'publisher', and 'author'. It specifies the structure of these tables, including their fields, data types, and primary keys. Additionally, it describes the file structure for the system, including database files, configuration, classes, and JavaScript files necessary for the web-based application.
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/ 23

We will create table book to store book details.

CREATE TABLE `book` (

`bookid` int(11) NOT NULL,

`categoryid` int(11) NOT NULL,

`authorid` int(11) NOT NULL,

`rackid` int(11) NOT NULL,

`name` text COLLATE utf8_unicode_ci NOT NULL,

`picture` varchar(250) COLLATE utf8_unicode_ci NOT NULL,

`publisherid` int(11) NOT NULL,

`isbn` varchar(30) COLLATE utf8_unicode_ci NOT NULL,

`no_of_copy` int(5) NOT NULL,

`status` enum('Enable','Disable') COLLATE utf8_unicode_ci NOT NULL,

`added_on` datetime NOT NULL DEFAULT current_timestamp(),

`updated_on` datetime NOT NULL DEFAULT current_timestamp()

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

ALTER TABLE `book`

ADD PRIMARY KEY (`bookid`);

ALTER TABLE `book`

MODIFY `bookid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

OUTPUT:
We will create table rack to store book rack location details.

CREATE TABLE `rack` (

`rackid` int(11) NOT NULL,

`name` varchar(200) COLLATE utf8_unicode_ci NOT NULL,

`status` enum('Enable','Disable') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Enable'

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

ALTER TABLE `rack`

ADD PRIMARY KEY (`rackid`);

ALTER TABLE `rack`

MODIFY `rackid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

OUT{UT:
We will create table category to store book category details.

CREATE TABLE `category` (

`categoryid` int(11) NOT NULL,

`name` varchar(200) COLLATE utf8_unicode_ci NOT NULL,

`status` enum('Enable','Disable') COLLATE utf8_unicode_ci NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

ALTER TABLE `category`

ADD PRIMARY KEY (`categoryid`);

ALTER TABLE `category`

MODIFY `categoryid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

OUTPUT:
We will create table publisher to store book publisher details.

CREATE TABLE `publisher` (

`publisherid` int(11) NOT NULL,

`name` varchar(255) NOT NULL,

`status` enum('Enable','Disable') NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

ALTER TABLE `publisher`

ADD PRIMARY KEY (`publisherid`);

ALTER TABLE `publisher`

MODIFY `publisherid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

OUTPUT:
We will create table author to store book author details.

CREATE TABLE `author` (

`authorid` int(11) NOT NULL,

`name` varchar(200) COLLATE utf8_unicode_ci NOT NULL,

`status` enum('Enable','Disable') COLLATE utf8_unicode_ci NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

ALTER TABLE `author`

ADD PRIMARY KEY (`authorid`);

ALTER TABLE `author`

MODIFY `authorid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

OUTPUT:-
Step 2:- Let’s we create a MySQL database tables:

First we will create MySQL database tables to implement our library system. Below is tables schema to create tables.

We will create user table to store user login details.

OUTPUT:-
WEBSITE DESIGN

A Library Management System is a web-based system used in library to manage items. It is used to store items details
into database and track records of items such as users, books, number of issued books, retuned books, not returned
books after due date and much more details.

 So, let’s implement Library Management System.

Step1:-We first create a file structure are:

LIBRARY-SYSTEM:

 Database file:
db_librarysystem.txt
db_books.txt

 Config:
database.php

 Class:
User.php
Author.php
Books.php
IssueBooks.php
Category.php
Publisher.php
Rack.php

 js
user.js
author.js
books.js
category.js
publisher.js
rack.js

index.php

dashboard.php

user.php

category.php

publisher.php

author.php

rack.php

books.php

issue_books.php

You might also like