Professional Documents
Culture Documents
Atul PHP MP
Atul PHP MP
Atul PHP MP
A MICRO-PROJECT REPORT ON
“CHATBOT FOR STUDENT USING PHP”
SUBMITED BY:-
GAIKWAD ATUL SUBHASH
ENROLLMENT NO:-
2216620153
UNDER GUIDANCE:-
2. Abstract 5
6. Output 12
7. Conclusion 13
8. References 14
ACKNOWLEDGEMENT
I express our sincere thanks to head of our department and
micro – project guide Mrs. Amruta Mallashetty Ma’am for
their valuable advice and guidance.
I also express our gratitude and thanks to all our teachers and
other faculty members of department computer, P. K.
Technical Campus, Chakan, for their sincere cooperation in
completing this micro-project.
4
ABSTRACT
This project aims to develop a chatbot tailored for student
use, implemented in the PHP programming language. The chatbot
will serve as a virtual assistant, providing students with instant
responses to their inquiries related to various educational aspects
such as course information, assignment deadlines, exam
schedules, and academic resources. Leveraging PHP's versatility
and integration capabilities, the chatbot will be designed to
interact with students through a user-friendly interface, utilizing
natural language processing techniques to understand and
respond to queries effectively.
5
INTRODUCTION
In the realm of education, the integration of technology has
revolutionized how students interact with academic resources and seek
assistance. Among these technological innovations, chatbots have
emerged as indispensable tools for providing personalized support and
streamlining various educational processes. This introduction lays the
groundwork for the development of a chatbot tailored specifically for
students, implemented using PHP a versatile server-side scripting
language commonly employed in web development.
7
SIGNIFICANCE OF PROJECT
Developing a chatbot for students using PHP is significant as it offers
immediate access to academic resources and assistance, fostering
independence and empowerment. Its round-the-clock availability ensures
support whenever needed, regardless of time or location. The chatbot's
personalized interactions through NLP algorithms enhance learning by
tailoring responses to individual queries and preferences, optimizing
students' time and focus on studies. Additionally, it serves as a feedback
mechanism for continuous improvement in teaching and curriculum
design, showcasing institutions' commitment to technological innovation
in education. Overall, the chatbot represents a transformative tool for
enhancing the educational experience and empowering students to
succeed.
Software Requirements:-
8
Source Code
HTML code for php:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Online Chatbot in PHP | CampCodes</title>
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
</head>
<body>
<div class="wrapper">
<div class="title">Simple Online Chatbot</div>
<div class="form">
<div class="bot-inbox inbox">
<div class=" ">
<i class="fas fa-user"></i>
</div>
</div>
</div>
<div class="typing-field">
<div class="input-data">
<input id="data" type="text" placeholder="Type something
here.." required>
<button id="send-btn">Send</button>
</div>
</div>
</div>
9
<script>
$(document).ready(function(){
$("#send-btn").on("click", function(){
$value = $("#data").val();
$msg = '<div class="user-inbox inbox"><div class="msg-
header"><p>'+ $value +'</p></div></div>';
$(".form").append($msg);
$("#data").val('');
$.ajax({
url: 'message.php',
type: 'POST',
data: 'text='+$value,
success: function(result){
$replay = '<div class="bot-inbox inbox"><div
class="icon"><i class="fas fa-user"></i></div><div class="msg-
header"><p>'+ result +'</p></div></div>';
$(".form").append($replay);
// when chat goes down the scroll bar automatically
comes to the bottom
$(".form").scrollTop($(".form")[0].scrollHeight);
}
});
});
});
</script>
</body>
</html>
10
Mysqli_connection with php:-
<?php
$conn = mysqli_connect("localhost", "root", "", "bot") or die("Database
Error");
?>
11
OUTPUT
12
CONCLUSION
13
REFERANCES
www.w3schools.com
www.google.com
www.geeksforgeeks.com
www.chatgpt.com
14