Atul PHP MP

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

P K TECHNICAL CAMPUS, CHAKAN

A MICRO-PROJECT REPORT ON
“CHATBOT FOR STUDENT USING PHP”

SUBMITED BY:-
GAIKWAD ATUL SUBHASH

ENROLLMENT NO:-

2216620153

UNDER GUIDANCE:-

Prof mrs. AMRUTA MALLASHETTY MA’AM


THIS IS CERTIFY THAT THE MICROPROJECT
IS SUCCESSFULLY SUBMITTED BY,

•Gaikwad Atul Subhash

MRS. AMRUTA HEAD OF THE


MALLASHETTY MA’AM DEPARTMENT
INDEX
Sr. Title Page
No. No.
1. Acknowledgement 4

2. Abstract 5

3. Introduction, Key features 6-7

4. Significance, Software Requirements 8

5. Source Code 9-11

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.

I would like to express our sincere gratitude to our teammates


who shared their valuable time and suggestions and edits in
making of 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.

Key features of the chatbot will include personalized


assistance based on user profiles, real-time updates on academic
events and deadlines, integration with educational databases and
APIs to retrieve relevant information, and support for multi-
platform accessibility. Additionally, the chatbot will incorporate
machine learning algorithms to continuously improve its
conversational abilities and enhance user experience over time.

By harnessing the power of PHP, this chatbot aims to


streamline communication and support services for students,
providing them with a convenient and efficient means of
accessing academic information and assistance. Through iterative
development and user feedback, the chatbot will evolve into a
valuable tool for students, helping them navigate their educational
journey with ease and efficiency.

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.

The envisioned chatbot aims to address prevalent challenges


encountered by students, including accessing academic resources,
obtaining course information, receiving timely assistance, and navigating
administrative procedures. By harnessing PHP's capabilities, alongside
complementary technologies, the chatbot promises to offer a responsive
and interactive interface facilitating seamless communication between
students and educational resources.

 Key features of the chatbot include:


1. Personalized Assistance: Utilizing natural language processing
(NLP) algorithms, the chatbot interprets students' queries and
delivers tailored responses, catering to their individual needs and
inquiries.
2. Access to Academic Resources: Students can leverage the chatbot
to retrieve a diverse array of academic materials, such as lecture
notes, textbooks, research articles, and study resources, thereby
enriching their learning experience.
6
3. Course Information and Enrollment: The chatbot assists students
in accessing information about available courses, prerequisites,
schedules, and enrollment procedures, simplifying the course
selection and registration process.
4. Assignment and Exam Reminders: Through automated
notifications, the chatbot reminds students of impending
assignments, exams, deadlines, and other critical events, aiding in
organizational management and academic success.
5. Feedback and Support: The chatbot serves as a conduit for
students to provide feedback on courses, instructors, and overall
educational experiences, fostering a culture of continuous
improvement and support.
6. 24/7 Availability: Operating round-the-clock, the chatbot ensures
students have access to instant assistance and information whenever
required, transcending time constraints and geographical
boundaries.
7. Integration with Learning Management Systems (LMS):
Seamlessly integrating with existing LMS platforms, such as
Moodle or Canvas, the chatbot grants students direct access to
course materials and grades via a conversational interface.

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:-

Computer system Windows 11, i-5 processor


Software XAMPP- version 3.3.0
Any other requirements Notepad, Chrome

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");

$getMesg = mysqli_real_escape_string($conn, $_POST['text']);

$check_data = "SELECT replies FROM chatbot WHERE queries LIKE


'%$getMesg%'";
$run_query = mysqli_query($conn, $check_data) or die("Error");

if(mysqli_num_rows($run_query) > 0){


$fetch_data = mysqli_fetch_assoc($run_query);
$replay = $fetch_data['replies'];
echo $replay;
}else{
echo "Sorry can't be able to understand you!";
}

?>

11
OUTPUT

12
CONCLUSION

In conclusion, the development of a chatbot for students using


PHP signifies a pivotal advancement in educational technology,
offering personalized assistance, streamlined resource access, and
continuous feedback mechanisms to enhance the learning
experience. By leveraging innovative technologies and user-
centric design principles, the project underscores the importance
of embracing digital solutions to meet the evolving needs of
learners in a rapidly changing educational landscape. Through
immediate support and collaboration opportunities, the chatbot
fosters engagement and empowers students to navigate their
academic journey more effectively. Furthermore, by providing a
platform for students to voice feedback and suggestions, the
chatbot promotes continuous improvement within educational
institutions, contributing to the enhancement of teaching
methodologies and curriculum design. Ultimately, the chatbot
represents a commitment to leveraging technology to optimize the
educational experience, preparing students for success in an
increasingly digital world.

13
REFERANCES
 www.w3schools.com
 www.google.com
 www.geeksforgeeks.com
 www.chatgpt.com

14

You might also like