PHP Project
PHP Project
PHP Project
SUBMITTED BY
SANDHYARANI SHIVAJI SALUNKE
RUCHIKA GANESH TONGIRE
SAYALI SUBHASH SONAWANE
AND
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI
1
CERTIFICATE
This is to certify that Following Students of Sixth semester of Diploma in
Computer Engineering of Institute CSMSS College of Polytechnic (code:1152) have
completed the Micro Project satisfactorily in subject Web Page Designing With
PHP (22619) for the academic year 2022-2023 as prescribed in the curriculum.
Place: Ch.Sambhajinagar
Date:
PRINCIPAL
2
ACKNOWLEDGEMENT
We would like to express our thanks to the people who have helped us most throughout our
project. We would like to express our sincere thanks to the principal of CSMSS College of
Polytechnic Dr. G.B. Dongre for being always with us as a motivator. We are thankful to the
H.O.D. Mrs.R.S.Pophale of Computer Engineering Department for his kind support. We are
grateful to our Project Guide Ms.P.V.Polshetwar for nonstop support and continuous
motivation for the project. His help made us possible to complete our project with all accurate
information. A special thanks of our goes to our friends who helped us in completing the
project, where they all exchanged their own interesting ideas. We wish to thanks our parents
for their personal support or attention who inspired us to go our own way. Finally, we would
like to thank God who made all things possible for us till the end.
3
INDEX
1 Micro-project Proposal 5
2 Rationale 6
10 Conclusion 16
11 References 17
4
1. MICRO - PROJECT PROPOSAL
TITLE: Library Management System
The Library Management system (LMS) acts as a tool to transform traditional libraries into
digital libraries. In traditional libraries, the students/user has to search for books which are
hassle process and there is no proper maintenance of database about issues/fines.
5
5.0 RESOURCES REQUIRED:
3 PC Windows 11 1
Approved by,
Ms.P.V.Polshetwar
2. RATIONALE
PHP is a general purpose, server-side scripting language run a web server that’s designed to make dynamic
pages and applications. PHP as a web development option is secure, fast and reliable. In the growing field
6 of
Web technology it is essential for every Diploma pass outs to learn PHP Language to help them build
interactive web applications. This course is designed to inculcate web based applications development skills
in students using server side scripting with PHP.
7
3. AIMS / BENEFITS OF THE MICRO PROJECT
PHP is a general-purpose, server-side scripting language that runs a web server that's
designed to make dynamic pages and applications.
PHP as a web development option is secure, fast, and reliable.
In the growing field of Web technology, every Diploma pass outs need to learn PHP
Language to help them build interactive web applications.
This course is designed to inculcate web-based application development skills in students
using server-side scripting with PHP.
8
4. COURSE OUTCOMES ACHIEVED
9
5.LITERATURE REVIEW
I. PROBLEM DEFINITION
The Library Management System is created & developed for the receipt and allocation of books in
the library along with the student's details. The books acquired in the library are entered in the Books
Entry form and the related student details are entered in the student user form. When the student
wants to get the preferred book the same is issued on the availability base on the student. The
issuance and due date for the return of the book are also entered into the Book Issue form under the
menu Book Issue. The student has to pay the fine if any on the base of no. days delayed return of the
book in the library.
HTML Form created for a selection of the different Menus. Subsequent menu options have been
provided in this Home Form
1. Books Entry
2. User Entry
3. Issue of Books
a) Issue of Books
b) Return of Books.
4. Book Delete And the web page design is as follows.
HOME PAGE
10
As said earlier, the web page has the following options "BOOK ENTRY', 'BOOK ISSUE', BOOK
RETURN", "BOOK SEARCH', 'BOOK DELETE'.
BOOK-ENTRY
By clicking the Book Entry Menu of the HTML web page ( home page) the above form is shown for the
entry of new books in the library. Following TextBoxes have been delivered for the entry of the books
related information:
1. Book no.
2. ISBN No.
11
3. Subject
4. Name of the Book
5. Author
6. Publisher
7. Edition
8. Copies
9. Price
In addition, Enter and Reset buttons have been provided in the form.
USER ACCOUNTS
By clicking any one of the menus 'BOOK ISSUE' or BOOK RETURN', the webpage will first direct to a
"User Entry” page and this form can be obtained for the entry of the new user coming to the library as a
user account as well as the returning of a book
In addition, the login and Refresh buttons have been provided in the form.
BOOK ISSUE
This form can be obtained by clicking the “BOOK ISSUE" for allocating a particular book available in the
library along with the issue and due date.
The following text boxes have been delivered for entry of Allocation of the Book.
Book No.
Student ID
Current No. of Copies Available
Issue Date
Due Date
In addition, the Issue and Refresh buttons have been given in the form.
BOOK RETURN
This form can be fetched by clicking the "BOOK RETURN" for returning a particular book issued to the
user from the library along with the issue, due date, and return date with a fine if any.
The following text boxes have been provided for entry of return of the Books.
Book No.
Student ID
Current No. of Copies Available
Issue Date
Due Date
Fine, if any
In addition, Return and Refresh buttons have been given in the form.
BOOK SEARCH
This form can be acquired by clicking the menu "BOOK SEARCH" for getting particulars about a
particular book.
The following text boxes have been provided for entry of return of the Books.
Book Name
Author Name.
If the book is found in the database, then the resulting web page will be shown.
BOOK DELETE
By clicking the Delete Menu of the HTML web page (home form) this form is shown for the deletion of
books in the library if required. Following TextBoxes have been provided for the finding books for
deletion:
13
Book Name
Author Name.
Table Design
Every web page is connected to a database (Microsoft Access 2010) form using a JSP page. And table
design for each form is given as follows.
USER ACCOUNT
STUDENT ID AuoNumber
ROLL NO Number
BRANCH Text
New Book entry
ID AuoNumber
BOOK_NAME Text
ISBN Number
SUBJECT Text
AUTHOR_NAME Text
PUBLISHER Text
EDITION Number
NO_OF_COPIE
Number
S
COST Number
BOOK ISSUE
BOOK NO AuoNumber
STUDENT ID Number
NO OF COPIES Number
14
ISSUE DATE Number
BOOK RETURN
BOOK NO AuoNumber
STUDENT ID Number
NO OF COPIES Number
15
6. ACTUAL METHODOLOGY FOLLOWED
PROGRAM CODE
A server-side technology, Java Server Pages is an extension to the Java servlet technology that was
created by Sun. JSPs have a dynamic scripting ability that works in tandem with HTML code,
separating the page logic from the static elements -- the actual design and display of the page -- to
assist create the HTML more functional (i.e. dynamic database queries). JSP codes that I used are
listed below.
1 LIB ENTRY
Code.
<%@page import="java.sql.*"%>
<%@page import-"java.io.*"%>
<html>
<body>
<%
String bno-request.getParameter("book_no");
String bn-request.getParameter("book_name");
String isbn-request.getParameter("book_isbn");
String sub-request.getParameter("book_subject");
String an-request.getParameter("author_name");
String pub-request.getParameter("book_publisher"); String ed-
request.getParameter("book_edition");
String cp-request.getParameter("no_of_copies");
String cst-request.getParameter("book_cost");
Class.forName("sun.jdbc.odbc.JdbcOdbc Driver");
Connection con-DriverManager.getConnection("Jdbc.Odbc:NEWBOOK");
Statement stmt-con.createStatement();
String s="INSERT INTO new_book_entry
тел
VALUES("+bno+":"+bn+":"+isbn+":"+sub+","+an+":"+pub+","+ed+":"+cp+":"+cst+"')";
stmt.executeUpdate(s);
con.commit();
%>
<body background-"image/7.jpg">
<br><br><br>
<br><center>
<FONT FACE-"COMIC SANS MS" COLOR="GREEN" SIZE="40%">
BOOK ADDED</CENTER></FONT><BR><BR>
<center><table width="40%" height="10%" bgcolor="#8ACA59"> <tbody>
<tr>
<td colspan=2 align="center"></td>
</tr>
<tr>
</tr>
<td><h3>A new book added to database!!!!!!</h3></td>
</tbody>
<BR><BR><BR>
</table>
</form>
</form>
<form name="form 1" action="BOOK_ISSUE.html">
16
<br><br><br><input type="submit" value="BACK" style="height: 50px; width:
150px"></center>
</form>
</body>
</html>
2.LIB ISSUE
Code:
<%@page import-"java.sql."%>
<%@page import-"java.io.*"%>
<html>
<body>
<%
String bno-request.getParameter("book_no");
String sid-request.getParameter("student_id");
String cp-request.getParameter("no_of_copies"); String is-request.getParameter("issue_date");
String rd-request.getParameter("return_date");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con-DriverManager.getConnection("Jdbc:Odbc:ISSUE"); Statement stmt-
con.createStatement();
String s-"INSERT INTO book_issue
VALUES(""+bno+":"+sid+", "+cp+":"+is+""""+rd+"")";
stmt.executeUpdate(s);
con.commit();
%>
<body background="image/7.jpg">
<br><br><br>
<br><center>
<FONT FACE="COMIC SANS MS" COLOR="GREEN" SIZE="40%">
BOOK ADDED</CENTER></FONT><BR><BR>
<center><table width="40%" height="10%" bgcolor="#8ACA59">
<tbody>
<tr>
<td colspan-2 align="center"></td>
</tr>
<tr>
</tr>
<td><h3>BOOK ISSUED!!!!!!</h3></td>
</tbody>
<BR><BR><BR>
</table>
</form>
</form>
<form name="form 1" action="BOOK ISSUE.html">
<br><br><br><input type="submit" value="BACK" style="height: 50px; width.
150px"></center>
</form>
</body>
</html>
3.LIB RETURN
Code:
<%@page import-"java.sql."%>
<%@page import-"java.io.*"%>
17
<html>
<body>
String bno-request.getParameter("book_no"); String sid-request.getParameter("student_id");
String cp-request.getParameter("no_of_copies");
String is-request.getParameter("issue_date");
String rd-request.getParameter("return_date");
String fn-request.getParameter("fine");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con-DriverManager.getConnection("Jdbc.Odbc.RETURN"); Statement stmt-
con.createStatement();
String s-"INSERT INTO book_return
VALUES("+bno+":"+sid+":"+cp+":"+is+":"+rd+":"+fn+")";
%>
stmt.executeUpdate(s);
con.commit();
<body background="image/7.jpg">
<br><br><br>
<br><center>
<FONT FACE="COMIC SANS MS" COLOR="GREEN" SIZE="40%">
BOOK ADDED</CENTER></FONT><BR><BR>
<center><table width="40%" height="10%" bgcolor="#8ACA59">
<tbody>
<tr>
<td colspan=2 align="center"></td>
</tr>
<tr>
</tr>
<td><h3>BOOK RETURNED!!!!!!</h3></td>
</tbody>
<BR><BR><BR>
</table>
</form>
</form>
<form name="form1" action="USER_ACCOUNTS1.html">
<br><br><br><input type="submit" value="BACK" style="height: 50px; width:
150px"></center>
</form>
</body>
</html>
4.LIB SEARCH
Code:
<%@page import-"java.sql."%> <%@page import-"java.io."%>
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con-DriverManager.getConnection("Jdbc.Odbc.SEARCH"); Statement stmt-
con.createStatement();
String sub-request.getParameter("bname");
String st="select * from new_book_entry where BOOK_NAME="+sub+" ResultSet rs-
stmt.executeQuery(st);
%>
<html>
18
<head>
<title></title>
</head>
<body background="image/9.jpg">
<form method="POST" action="">
<center>
<%
if(rs.next())
{
%>
<br><br><br><br>
<table border="1">
<BR><BR><BR><BR><BR><BR>
<tr>
<td><font face="comic sans ms" color="yellow">Book Id</font></td>
<td><font face="comic sans ms" color="yellow">Book Name</font></td>
<td><font face="comic sans ms" color="yellow">ISBN NO</font></td> <td><font face="comic
sans ms" color="yellow">Subject</font></td>
<td><font face="comic sans ms" color="yellow">Author Name</font></td>
<td><font face="comic sans ms" color="yellow">Publisher</font></td>
<td><font face="comic sans ms" color="yellow">Edition</font></td>
<td><font face="comic sans ms" color="yellow">No of Copies</font></td>
<td><font face="comic sans ms" color="yellow">Cost</font></td>
</tr>
<%
do
{
%>
<tr>
<td><font face-"comic sans ms" color="yellow"
><%out.println(rs.getString("BOOK_NAME"));%></font></td>
<td><font face-"comic sans ms" color="yellow"
><%out.println(rs.getString("ID")); %></font></td>
<td><font face-"comic sans ms" color="yellow"
><%out.println(rs.getString("ISBN")); %></font></td> <td><font face-"comic sans ms"
color="yellow"
><%out.println(rs.getString("SUBJECT")); %></font></td>
<td><font face="comic sans ms" color="yellow"
><%out.println(rs.getString("AUTHOR_NAME")); %></font></td> <td><font face="comic sans
ms" color="yellow"
><%out.println(rs.getString("PUBLISHER")); %></font></td>
<td><font face="comic sans ms" color="yellow"
><%out.println(rs.getString("EDITION")); %></font></td>
<td><font face="comic sans ms" color="yellow"
><%out.println(rs.getString("NO_OF_COPIES")); %></font></td>
<td><font face-"comic sans ms" color="yellow"
><%out.println(rs.getString("COST")); %></font></td>
</tr>
} while(rs.next());
}
else
{
19
%>
<br><br><br><br><br><br<br><br><br><font face="comic sans ms"
color="yellow" size="20%">
<%
out.println("No such books found !!!!!!");
}
}
catch(Exception e)
{
System.out.println(e);
}
%7
</table>
</center>
</form>
</form>
<CENTER><form name="form1" action="BOOK_SEARCH.html">
<br><br><br><input type="submit" value="BACK" style="height: 50px; width:
150px"></center>
</form>
</body>
</html>
5.LIB_DELETE
Code:
<%@page import-"java.sql."%> <%@page import-"java.io.*"%>
<html>
<body background="image/9.jpg">
<%
Class.forName("sun.jdbc.odbe.Jdbc0dbcDriver");
Connection con-DriverManager.getConnection("Jdbc.Odbc.NEWBOOK"); Statement st-
con.createStatement();
String find-request.getParameter("bname");
String r="select * from new_book_entry where BOOK_NAME="+find+"
ResultSet rs-st.executeQuery(r);
if(rs.next())
{
%>
<body background-"image/7.jpg">
<h1><center><b><font color="green"><BR><BR><BR>
<CENTER><FONT FACE="COMIC SANS MS" COLOR="GREEN" SIZE="40%">
BOOK DELETED</CENTER></FONT><BR><BR>
<form action="BOOK_DELETE.html">
<center><br><br><br><input type="submit" value="BACK" style="height: 50px; width:
150px"></center>
</form>
String delete="DELETE* from new_book_entry where BOOK_NAME="+find+"
st.executeUpdate(delete);
con.commit();}
else
{
<body background="image/7.jpg">
<BR><BR><BR><BR><BR><BR><CENTER><FONT FACE-"COMIC SANS MS"
20
COLOR="GREEN" SIZE="40%">
INVALID ENTRY</CENTER></FONT><CENTER><BR><BR>
<form action-"BOOK DELETE.html">
<center><br><br><br><input type="submit" value="BACK" style="height: 50px; width:
150px"></center>
</form>
<% } %>
</body>
</html>
</form>
</body>
</html>
6.LIB USER
Code:
<%@page import-"java.sql."%>
<%@page import-"java.io.*"%>
<html>
<body>
<%
String sid-request.getParameter("student_id"); String r-request.getParameter("roll_no");
String snm-request.getParameter("student_name"); String br-request.getParameter("branch");
Class.forName("sun.jdbc.odbc.Jdbc0dbcDriver");
Connection con-DriverManager.getConnection("Jdbc.Odbc.USER"); Statement stmt-
con.createStatement();
String s-"INSERT INTO user_account VALUES ("+sid+":"+m+":"+snm+":"+br+"')";
stmt.executeUpdate(s);
con.commit();
%7
</body>
</html>
21
7.ACTUAL RESOURCES USED
2 Windows OS Windows 10 1
22
8. SKILL DEVELOPED / LEARNING OUTCOMES OF MICRO - PROJECT:
23
9. APPLICATIONS OF MICRO - PROJECT
A library management system is used to maintain library records. It tracks the records of the
number of books in the library, how many books are issued, or how many books have been
returned or renewed or late fine charges.
College Library Management Systems are web and mobile-based applications that allow higher
education institutions to deliver content and resources to students, faculty, and staff.
24
10. CONCLUSION
11. REFERENCE 35
https://www.researchgate.net/
https://www.gsma.com/
https://pubmed.ncbi.nlm.nih.gov
36