Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 34

NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY

(AN AUTONOMOUS INSTITUTION, AFFILIATED TO VISVESVARAYA TECHNOLOGICAL UNIVERSITY,


BELGAUM, APPROVED BY AICTE & GOVT.OF KARNATAKA

Database Management Systems (21CSG45)


on

“Online Classes Enquiry System”


Submitted in partial fulfilment of the requirement for the award of Degree of
Bachelor of Engineering
in
Computer Science and Engineering
Submitted by:
Abhimanyu 1NT20CS008
Abiskar Kumar Yadav 1NT20CS013
Arpit Johri 1NT20CS044
Kuber Reddy 1NT20CS054

Under the Guidance of


Shruthi Shetty J
Assistant Professor, Dept. of CS&E, NMIT

Department of Computer Science and Engineering


(Accredited by NBA Tier-1)
2022-2023
NITTE MEENAKSHI INSTITUTE OF TECHNOLOGY
(AN AUTONOMOUS INSTITUTION, AFFILIATED TO VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELGAUM
, APPROVED BY AICTE & GOVT.OF KARNATAKA)

Department of Computer Science and Engineering


(Accredited by NBA Tier-1)

CERTIFICATE

This is to certify that the Project Report on Online Classes Enquiry System is an authentic
work carried out by Abhimanyu (1NT20CS008), Abiskar Kumar Yadav (1NT20CS013),
Arpit Johri (1NT20CS044) and Kuber Reddy (1NT20CS054) bonafide students of Nitte
Meenakshi Institute of Technology, Bangalore in partial fulfilment for the award of the
degree of Bachelor of Engineering in COMPUTER SCIENCE AND ENGINEERING of
Visvesvaraya Technological University, Belagavi during the academic year 2022-2023. It is
certified that all corrections and suggestions indicated during the internal assessment have
been incorporated in the report.

Course Faculty Signature of the HOD

Shruthi Shetty J Dr. Vijaya Shetty S


Assistant Professor, Dept. Professor, Head, Dept. CSE,
CSE, NMIT Bangalore NMIT Bangalore

Online Classes Enquiry System 2


DECLARATION
We hereby declare that.

(i) The project work is our original work.


(ii) This Project work has not been submitted for the award of any degree or
examination at any other university/College/Institute.
(iii) This Project Work does not contain other persons’ data, pictures, graphs or other
information, unless specifically acknowledged as being sourced from other
people.
(iv) This Project Work does not contain other persons’ writing, unless specifically
acknowledged as being sourced from other researchers. Where other written
sources have been quoted, then:
a) their words have been re-written, but the general information attributed to
them has been referenced.
b) where their exact words have been used, their writing has been placed inside
quotation marks, and referenced.
(v) This Project Work does not contain text, graphics or tables copied and pasted
from the Internet, unless specifically acknowledged, and the source being detailed
in the thesis and in the References sections.

NAME USN Signature


Abhimanyu 1NT20CS008
Abiskar kumar yadav 1NT20CS013
Arpit Johri 1NT20CS044
Kuber Reddy 1NT20CS054

Date: 27-07-2023

Online Classes Enquiry System 3


ACKNOWLEDGEMENT

The satisfaction and euphoria that accompany the successful completion of any task would be
incomplete without the mention of the people who made it possible, whose constant guidance
and encouragement crowned our effort with success. We express my sincere gratitude to our
Principal Dr. H. C. Nagaraj, Nitte Meenakshi Institute of Technology for providing
facilities.
We wish to thank our HoD, Dr. Vijaya Shetty S., for the excellent environment created to
further educational growth in our college. We also thank him for the invaluable guidance
provided which has helped in the creation of a better project.
We hereby like to thank our subject faculty Mrs. Shruthi Shetty J Assistant Professor,
Department of Computer Science & Engineering for her periodic inspection, time to time
evaluation and helping to bring the project to the present form.
We also thank all our friends, teaching, and non-teaching staff at NMIT, Bangalore, for all
the direct and indirect help provided in the completion of the project.

NAME USN SIGNATURE

Abhimanyu 1NT20CS008

Abiskar Kumar Yadav 1NT20CS013

Arpit Johri 1NT20CS044

Kuber Reddy 1NT20CS054

Date: 27-07-2023

Online Classes Enquiry System 4


ABSTRACT

The Online Class Enquiry System is an innovative web-based platform aimed at simplifying the
process of class inquiries and registrations for educational institutions offering online courses. This
report provides an overview of the system, outlining its key features, benefits, and challenges.

The primary objective of the Online Class Enquiry System is to enhance the user experience for
prospective students by providing them with a user-friendly interface to explore and inquire about
available online courses. The system also aims to streamline administrative tasks by automating the
inquiry and registration processes, thereby reducing the workload on administrative staff.

Key features of the system include a comprehensive course catalog, an inquiry form for prospective
students to submit their queries, real-time availability updates for courses, and integrated payment
gateways for secure online registrations and payments.

The adoption of the Online Class Enquiry System offers various advantages, such as improved
communication between students and educational institutions, efficient resource management, and
increased revenue generation through attracting more students to online courses.

However, the implementation of the system may encounter challenges, such as ensuring robust
security measures for safeguarding sensitive data and addressing potential technical issues to maintain
system reliability.

In conclusion, the Online Class Enquiry System represents a valuable tool for educational institutions
to enhance their online course offerings and streamline administrative processes. By offering a
seamless user experience and automating critical tasks, the system contributes to a more efficient and
effective educational ecosystem. To ensure successful implementation, it is essential to address
security concerns, provide appropriate training and support to users, and continuously improve the
system based on user feedback.

Online Classes Enquiry System 5


TABLE OF CONTENTS

1. CHAPTER 1: INTRODUCTION
1.1 Methodology
1.1.1 Brief history of Technology/concept
1.1.2 Applications
1.2 Research motivation and Problem statement
1.3 Research objectives and contributions
1.3.1 Challenges of Online Classes
1.3.2 Results and Findings
1.4 Summary

2. CHAPTER 2: LITERATURE SURVEY


2.1 Introduction
2.2 Study of Tools/Technology
2.3 Summary

3. CHAPTER 3: SYSTEM REQUIREMENTS SPECIFICATIONS


3.1 General Description
3.1.1 Product Perspective
3.2 System Requirements
3.3 Summary

4. CHAPTER 4: IMPLEMENTATION

4.1 Queries
4.2 Code
4.3 Outputs

5. CHAPTER 5: LIST OF TABLES

6. CHAPTER 7: CONCLUSIONS

7. REFERENCES

Online Classes Enquiry System 6


Introduction

Methodologies
The integration of technology in education has led to a paradigm shift in how knowledge is
disseminated and acquired. One of the most significant developments in this domain is the
concept of online classes. With the advent of the internet and digital technologies, online
classes have become an essential part of modern learning methodologies. This report aims to
provide a comprehensive investigation into the world of online classes, examining their
historical background, current applications, advantages, challenges, and the potential
implications for the future of education.

Brief History of Technology/Concept


The concept of online classes has its roots in early experiments with distance education,
dating back to the 19th century. However, it was not until the late 20th century, with the rise
of the internet, that online classes truly gained momentum. The first online courses emerged
in the 1990s, offering learners the flexibility to access educational content from anywhere
with an internet connection. Since then, the continuous advancement of digital technologies
has transformed online classes into interactive and dynamic platforms, revolutionizing the
learning experience.

Applications
Online classes have found applications in various educational and professional domains.
From traditional academic subjects in K-12 education to specialized courses in higher
education, vocational training, language learning, and corporate development programs, the
versatility of online classes has contributed to their widespread adoption. Moreover, online
classes have also played a pivotal role in breaking down barriers to education, enabling
learners from different geographical locations and backgrounds to access quality learning
resources.

Research Motivation
The increasing prevalence of online classes has sparked considerable interest among
educators, researchers, policymakers, and learners alike. Understanding the motivations
behind the widespread adoption of online classes is crucial to gauge their impact on the
education landscape. Furthermore, exploring the advantages and challenges associated with
this mode of learning can inform strategies to enhance its effectiveness.

Statement of the Problem


Despite the numerous benefits offered by online classes, several challenges persist. These
include concerns about the quality of online education compared to traditional classrooms,
issues of accessibility and inclusivity, the need for effective student engagement and
motivation, as well as the importance of continuous technological advancements to improve
the learning experience. Addressing these challenges is vital to optimize the potential of
online classes in fostering comprehensive and equitable education.

Online Classes Enquiry System 7


Advantages of Online Classes

Flexibility and Accessibility


One of the primary advantages of online classes is the flexibility they offer. Learners can
access course materials at their convenience, accommodating diverse schedules and personal
commitments. Additionally, the accessibility of online classes enables individuals who may
not have access to traditional educational institutions to pursue learning opportunities and
acquire new skills.
Interactive Learning Experience
Online classes often employ multimedia elements, such as videos, animations, and interactive
quizzes, to engage learners actively. This interactive approach to learning enhances
understanding, retention, and motivation, fostering a dynamic and immersive educational
experience.
Personalized Learning
Online classes can be tailored to meet individual learning needs and preferences. Learners
can progress at their own pace, review content as needed, and receive personalized feedback,
creating a more individualized learning journey.

Challenges of Online Classes

Technological Infrastructure
 Effective participation in online classes relies heavily on access to reliable internet
connectivity and suitable devices. Unequal access to technology may create
disparities in learning opportunities.
 Student Engagement and Motivation
Without face-to-face interactions, some students may struggle with self-discipline and
motivation in online learning environments. Maintaining a sense of community and
engagement becomes vital for successful online education.

 Assessment and Academic Integrity


Ensuring the authenticity of assessments and preventing academic dishonesty can be
challenging in online classes. Developing robust evaluation methods and utilizing
plagiarism detection tools are essential to maintain academic rigor.
 Future Implications and Opportunities
The ever-evolving landscape of online classes presents exciting opportunities for the
future of education. The integration of artificial intelligence, virtual reality, and
augmented reality may further enhance the learning experience, making it more
interactive and immersive. Additionally, the continuous improvement of data
analytics can offer valuable insights into learner behavior, enabling educators to
personalize learning pathways and optimize instructional strategies.

Online Classes Enquiry System 8


Results and Findings of an Online Classes Enquiry:

 Increased Access to Education: One of the significant findings of online classes is


their ability to provide access to education for a broader audience. Online classes have
made learning more flexible, enabling individuals from different geographical
locations and diverse backgrounds to participate in courses and acquire new skills.
 Enhanced Flexibility and Convenience: Learners appreciate the flexibility and
convenience of online classes. They can access course materials at their own pace and
study during their preferred time, which accommodates various personal and
professional commitments.
 Technological Challenges: While online classes offer numerous benefits, they are not
without challenges. Technical issues, such as poor internet connectivity, compatibility
problems with devices, and platform usability, can hinder the learning experience for
some students.
 Student Engagement and Motivation: Maintaining high levels of student engagement
and motivation in an online setting can be challenging. The absence of face-to-face
interactions may lead to a sense of isolation for some learners, impacting their
commitment to the course.
 Innovative Learning Tools: Successful online classes often utilize a variety of
interactive learning tools and multimedia elements to engage students effectively.
These tools include virtual simulations, video lectures, interactive quizzes, and
discussion forums.
 Academic Integrity and Assessment: Ensuring academic integrity in online
assessments can be a concern. Educators need to implement secure and reliable
assessment methods to prevent cheating and plagiarism.
 Instructor Role and Support: Effective online classes depend on skilled instructors
who can adapt their teaching styles to the digital environment. Providing proper
support and guidance to students is essential for their success.
 Inclusivity and Accessibility: Online classes need to be designed with inclusivity in
mind, ensuring that students with disabilities or diverse learning needs can access and
engage with the content effectively.
 Cost-Effectiveness: For institutions, online classes can be more cost-effective than
traditional in-person classes, as they often require fewer physical resources and
facilities.
 Continued Growth and Innovation: The field of online education is continuously
evolving. New technologies and pedagogical approaches are being developed to
improve the learning experience further.

Online Classes Enquiry System 9


Queries and Code
For creation and inclusion of the database, the following queries are used:

-- Create the database


CREATE DATABASE enquiry_db;

-- Use the database


USE enquiry_db;

-- Create the courses table


CREATE TABLE courses (
cid VARCHAR(50) NOT NULL,
cname VARCHAR(100) NOT NULL,
cdescription TEXT,
PRIMARY KEY (cid)
);

-- Create the enquiries table


CREATE TABLE enquiries (
eid INT AUTO_INCREMENT,
cid VARCHAR(50) NOT NULL,
name VARCHAR(100) NOT NULL,
email VARCHAR(100) NOT NULL,
message TEXT NOT NULL,
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (eid),
FOREIGN KEY (cid) REFERENCES courses (cid)
);

-- Create the teachers table


CREATE TABLE teachers (
tid INT AUTO_INCREMENT,
username VARCHAR(100) NOT NULL,
password VARCHAR(255) NOT NULL,
tname VARCHAR(100) NOT NULL,
temail VARCHAR(100) NOT NULL,
tphone VARCHAR(20),
cid VARCHAR(50) NOT NULL,
PRIMARY KEY (tid),
FOREIGN KEY (cid) REFERENCES courses (cid)
);

Online Classes Enquiry System 10


INSERT INTO courses (cid, cname, cdescription) VALUES ('java', 'Java', 'Learn
Java programming language.');
INSERT INTO courses (cid, cname, cdescription) VALUES ('c', 'C', 'Learn C
programming language.');
INSERT INTO courses (cid, cname, cdescription) VALUES ('python', 'Python',
'Learn Python programming language.');

INSERT INTO teachers (username, password, tname, temail, tphone, cid) VALUES
('abhimanyu.175', 'password123', 'Abhimanyu', 'abhimanyu.175@gmail.com',
'8310091891', 'java');

Database Structure after creation:

Course Table after creation:

Teachers Table after creation:

Enquiries Table after enquiries are entered:

Online Classes Enquiry System 11


Files used in the making of the report:
 index.php

<!DOCTYPE html>
<html>

<head>
<title>Online Classes Enquiry</title>
<style>
/* CSS styles for the index page */
@import url('https://fonts.googleapis.com/css2?
family=Montserrat:wght@700&display=swap');

body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
color: #333;
margin: 0;
padding: 0;
background-image: url('bg.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}

.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}

h1 {
font-family: 'Montserrat', sans-serif;
font-weight: 700;
color: #64CCC5;
margin-top: 40px;
line-height: 1.8;
text-align: center;
font-size: 50px;
text-decoration: underline;
}

h2 {
color: #007bff;
text-align: center;
font-size: 38px;
text-decoration: underline;

Online Classes Enquiry System 12


line-height: 1.8;
}

ul {
list-style: none;
padding: 0;
margin: 20px 0;
}

li {
margin-bottom: 10px;

a {
text-align: center;
text-decoration: none;
color: #007bff;
line-height: 1.8;
font-size: 24px;
}

a:hover {
text-decoration: underline;
}

form {
font-size: 19px;
margin-top: 20px;
background-color: #001C30;
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

label {
margin-bottom: 10px;
color: #DAFFFB;
font-size: 19px;
}

input[type="text"],
input[type="password"],
textarea {
font-size: 15px;
width: 17%;
padding: 10px;

Online Classes Enquiry System 13


border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
}

/* input[type="text"], */
input[type="email"],
textarea {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}

input[type="submit"] {
background-color: #007bff;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}

input[type="submit"]:hover {
background-color: #0056b3;
}

.error {
color: #dc3545;
font-size: 14px;
}

.success {
color: #28a745;
font-size: 14px;
}

.polka {
font-size: 18px;
}

p {
margin: 20px;
text-align: center;
line-height: 1.8;
color: #000000;
font-size: 22px;

Online Classes Enquiry System 14


font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS',
sans-serif;
}

.just {

margin: 20px;
text-align: justify;
line-height: 1.8;
color: #000000;
font-size: 22px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS',
sans-serif;
}

h3 {
margin: 20px;
text-align: center;
line-height: 1.8;
color: #1324dfef;
font-size: 24px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS',
sans-serif;
}

.loginarea {
text-align: center;
/* position: fixed; */
left: 0;
bottom: 0;
width: 100%;

color: white;
text-align: center;
}

.teacherloginhead
{
color: #0adee9;
}
.logininfo
{
text-align: center;
color: #1e4542;
}
</style>
</head>

Online Classes Enquiry System 15


<body>
<h1>Welcome to Online Classes Enquiry</h1>
<p>Welcome to our online classes enquiry site, where learning knows no
boundaries! Whether you're looking to acquire
new skills, enhance your knowledge, or explore exciting subjects, we're
here to connect you with a diverse array of
online courses. Embrace the flexibility and convenience of remote
learning, as our platform brings together a
curated selection of courses from top educators and institutions
worldwide. From professional development to
creative pursuits, our comprehensive range of offerings caters to
learners of all ages and interests. Embark on a
journey of self-discovery and intellectual growth, as you discover the
endless possibilities that await within our
virtual classrooms. Enquire now and open the door to a world of
boundless learning opportunities.</p>
<h2>Courses Available</h2>
<div style="clear: left;">
<h3>Java</h3>
<p style="float: left;"><img src="javabg.jpg" width="600px"
height="380px">
</div>
</p>

<p class="just">Java is a widely-used and versatile programming language


that has had a significant impact on the
software
development industry since its introduction in the mid-1990s. Developed
by James Gosling and his team at Sun
Microsystems, Java was designed to be a platform-independent language
that could run on any device with a Java
Virtual Machine (JVM), making it highly portable and versatile.

One of the key features of Java is its "write once, run anywhere"
philosophy. Java programs are compiled into
bytecode, which can be executed on any system that has a compatible
JVM. This platform independence has made Java
a popular choice for developing applications ranging from desktop
software to enterprise-level systems. It has
also been widely adopted in the mobile space, with the development of
the Android platform, which is primarily
based on Java.

Java's object-oriented nature allows for the creation of modular and


scalable code. The language provides a rich
set of features such as classes, objects, inheritance, and
polymorphism, which facilitate the creation of complex

Online Classes Enquiry System 16


and reusable code structures. Additionally, Java's extensive standard
library offers a wide range of pre-built
classes and functions that simplify common programming tasks, making
development faster and more efficient.

Another notable feature of Java is its focus on security. The language


incorporates various security mechanisms,
such as bytecode verification, automatic memory management (garbage
collection), and a strong type system, which
help prevent common programming errors and reduce the risk of
vulnerabilities like buffer overflows and memory
leaks. Java's security features have made it a popular choice for
building applications that require robust
security measures, such as online banking systems and e-commerce
platforms.

Java's success can also be attributed to its thriving ecosystem. The


Java Development Kit (JDK) provides a
comprehensive set of tools for developing, debugging, and profiling
Java applications. Additionally, the Java
community is vast and active, with numerous open-source frameworks,
libraries, and development tools available.
This ecosystem fosters collaboration and innovation, making it easier
for developers to build sophisticated and
feature-rich applications.

In conclusion, Java's platform independence, object-oriented paradigm,


strong security features, and robust
ecosystem have established it as one of the most widely-used
programming languages in the world. Its versatility
and widespread adoption across different domains, including enterprise
software, web development, and mobile
applications, have solidified its position as a powerful and reliable
choice for developers seeking to build
scalable, portable, and secure software solutions.
<br>
<a href="java.php">Click here to enquire about the Java Course</a>
</p>
</div>

<div style="clear: right;">


<h3>C</h3>
<p style="float: right;"><img src="cbg.jpg" width="600px"
height="600px">
</div>
</p>
<p class="just">

Online Classes Enquiry System 17


The C programming language is a powerful and widely-used general-
purpose programming language that has left a
profound impact on the world of computer programming. Developed in the
early 1970s by Dennis Ritchie at Bell Labs,
C was initially designed to be a system programming language for the
Unix operating system. Its simplicity,
efficiency, and portability soon led to its widespread adoption in
various domains, from embedded systems to
large-scale applications, making it one of the most popular programming
languages in history.

One of C's most notable features is its close-to-hardware nature,


allowing programmers to directly manipulate
memory addresses and perform low-level tasks, which is especially
useful for developing operating systems, device
drivers, and embedded systems. Despite its low-level capabilities, C
also offers a rich set of high-level
features, such as functions, data structures, and dynamic memory
allocation, enabling the development of complex
and modular applications.

The language's syntax and semantics heavily influenced many other


programming languages, making it a precursor to
C++ and subsequently other object-oriented languages. C's widespread
use and standardization led to the creation
of the ANSI C standard (ANSI C89/C90) and later the ISO C standard (C99
and C11), ensuring that C programs can be
written in a consistent and portable manner across different platforms.

Due to its speed and efficiency, C remains the language of choice for
performance-critical applications and
systems programming tasks. However, its direct memory access and lack
of certain modern safety features, like
garbage collection, leave room for potential pitfalls such as buffer
overflows and memory leaks, requiring
developers to be vigilant about memory management and safe programming
practices.

In conclusion, the C programming language's enduring popularity and


widespread use stem from its simplicity,
portability, and performance, making it an indispensable tool for a
wide range of applications, from system
programming to application development. While newer languages have
emerged with more sophisticated features, C
continues to be a fundamental language that has shaped the way
programmers approach problem-solving and software
development.
<br>

Online Classes Enquiry System 18


<a href="c.php">Click here to enquire about the C course</a></p>

</div>

<div style="clear: left;">


<h3>Python</h3>
<p style="float: left;"><img src="pythonbg.jpg" width="600px"
height="500px">
</div>
</p>

<p class="just">Python is a powerful and versatile programming language


that has become a favorite among developers, educators, and businesses
worldwide. With its simple and readable syntax, Python is known for its
ease of learning, making it an ideal language for beginners to step into
the world of programming. The language's clear and concise code structure
resembles the English language, allowing developers to focus on solving
problems rather than grappling with complex syntax.

What sets Python apart is its broad range of applications, making it an


all-purpose language that can be used in various fields. From web
development to data analysis, artificial intelligence to automation, Python
has left its mark in almost every industry. This adaptability has
contributed to Python's immense popularity and has attracted an ever-
growing community of developers who continuously contribute to its
extensive ecosystem.

Python's extensive standard library and third-party modules offer a


treasure trove of tools that simplify development and reduce the need to
reinvent the wheel. Developers can leverage popular frameworks like Django
and Flask for web development, NumPy and Pandas for data manipulation, and
TensorFlow and PyTorch for machine learning. This vast array of libraries
makes Python a go-to choice for tackling complex tasks efficiently.

The language's cross-platform compatibility allows developers to write code


that works seamlessly across different operating systems, promoting
portability and ease of deployment. Additionally, Python's role in the
fields of scientific computing, research, and education further solidifies
its standing as a valuable language that transcends industry boundaries.

As a result of its wide adoption and relevance in today's tech landscape,


learning Python opens up a plethora of career opportunities. Whether you
aspire to be a web developer, data scientist, machine learning engineer, or
pursue any other technology-related role, Python is an essential skill that
can propel your career to new heights.
<br>
<a href="python.php">Click here to enquire about the Python Course</a>
</p>

Online Classes Enquiry System 19


</div>

<br><br><br><br>
<hr>
<hr>
<br><br><br><br>

<div class="logininfo">

<form action="teacher_login.php" method="post">


<br>
<h2 class="teacherloginhead">Teacher Login</h2>
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br>

<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br>

<input type="submit" value="Login">


<br>

<p>.</p>
</form>
</div>
</body>

</html>

Online Classes Enquiry System 20


 enquiries.php

<?php
session_start(); // Start the session

// Establish database connection (Replace with your database connection


details)
$host = "localhost";
$username = "root";
$password = "";
$database = "enquiry_db";
$conn = new mysqli($host, $username, $password, $database);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

// Retrieve the teacher's details from the database using the teacher_id from
the session
if (isset($_SESSION['teacher_id'])) {
$teacherId = $_SESSION['teacher_id'];
$sql = "SELECT * FROM teachers WHERE tid = '$teacherId'";
$result = $conn->query($sql);

if ($result->num_rows > 0) {
$teacherRow = $result->fetch_assoc();
$teacherName = $teacherRow['tname'];
$teacherEmail = $teacherRow['temail'];
// Add any other relevant teacher details you want to display
} else {
$teacherName = "Teacher details not found.";
$teacherEmail = "";
// Handle the case if teacher details are not found
}
}

// Retrieve and display enquiries from the database


$sqlEnquiries = "SELECT * FROM enquiries";
$resultEnquiries = $conn->query($sqlEnquiries);

// Close the database connection


$conn->close();
?>

<!DOCTYPE html>
<html>
<head>
<title>Enquiries</title>
<link rel="stylesheet" type="text/css" href="enquiries.css">

Online Classes Enquiry System 21


</head>
<body>
<h1>Enquiries</h1>

<!-- Display the teacher's details -->


<?php if (isset($_SESSION['teacher_id'])) { ?>
<h2>Teacher Details</h2>
<p>Name: <?php echo $teacherName; ?></p>
<p>Email: <?php echo $teacherEmail; ?></p>
<!-- Add any other teacher details you want to display -->
<?php } else { ?>
<p>Teacher details not available. Please login to view the
details.</p>
<?php } ?>

<!-- Display the list of enquiries -->


<h2>Enquiries List</h2>
<table>
<tr>
<th>Name</th>
<th>Email</th>
<th>Message</th>
<th>Course ID</th>
<th>Timestamp</th>
</tr>
<?php
if ($resultEnquiries->num_rows > 0) {
while ($rowEnquiry = $resultEnquiries->fetch_assoc()) {
$name = $rowEnquiry['name'];
$email = $rowEnquiry['email'];
$message = $rowEnquiry['message'];
$courseId = $rowEnquiry['cid'];
$timestamp = $rowEnquiry['timestamp'];
?>
<tr>
<td><?php echo $name; ?></td>
<td><?php echo $email; ?></td>
<td><?php echo $message; ?></td>
<td><?php echo $courseId; ?></td>
<td><?php echo $timestamp; ?></td>
</tr>
<?php
}
} else {
?>
<tr>
<td colspan="5">No enquiries found.</td>
</tr>

Online Classes Enquiry System 22


<?php
}
?>
</table>
</body>
</html>

 submit_enquiry.php

<?php
// Establish database connection
$host = "localhost";
$username = "root";
$password = "";
$database = "enquiry_db";
$conn = new mysqli($host, $username, $password, $database);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

// Retrieve form data


$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$cid = $_POST['cid'];

// Validate form data (you can add additional validation if needed)

// Insert enquiry details into the database


$sql = "INSERT INTO enquiries (cid, name, email, message) VALUES ('$cid',
'$name', '$email', '$message')";
if ($conn->query($sql) === TRUE) {
echo "Enquiry submitted successfully!";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}

// Close the database connection


$conn->close();
?>

Online Classes Enquiry System 23


 teacher_login.php

<?php
session_start(); // Start the session

// Check if the teacher is already logged in, redirect to enquiries.php


if (isset($_SESSION['teacher_id'])) {
header("Location: enquiries.php");
exit();
}

// Check if the form is submitted


if ($_SERVER["REQUEST_METHOD"] === "POST") {
// Establish database connection (Replace with your database connection
details)
$host = "localhost";
$username = "root"; // Replace with your MySQL username
$password = ""; // Replace with your MySQL password
$database = "enquiry_db"; // Replace with your database name
$conn = new mysqli($host, $username, $password, $database);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

// Process the login form submission


$input_username = $_POST["username"];
$input_password = $_POST["password"];

// Prepare and execute the query to check if the teacher credentials


are valid
$sql = "SELECT tid, tname FROM teachers WHERE username = ? AND
password = ?";
$stmt = $conn->prepare($sql);
$stmt->bind_param("ss", $input_username, $input_password);
$stmt->execute();
$result = $stmt->get_result();

if ($result->num_rows === 1) {
// Teacher login successful
$row = $result->fetch_assoc();
$_SESSION['teacher_id'] = $row['tid'];
$_SESSION['teacher_name'] = $row['tname'];

// Redirect to enquiries.php
header("Location: enquiries.php");
exit();
} else {
// Login failed, show an error message

Online Classes Enquiry System 24


$login_error = "Invalid username or password";
}

// Close the database connection


$conn->close();
}
?>

<!DOCTYPE html>
<html>
<head>
<title>Teacher Login</title>
<style>
/* Add your CSS styles here */
</style>
</head>
<body>
<h1>Teacher Login</h1>

<!-- Display the error message, if any -->


<?php if (isset($login_error)) { ?>
<p><?php echo $login_error; ?></p>
<?php } ?>

<!-- Teacher login form -->


<form action="teacher_login.php" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br>

<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br>

<input type="submit" value="Login">


</form>
</body>
</html>

Online Classes Enquiry System 25


 java.php (Similar file with different text used for C and Python
too)

<!DOCTYPE html>
<html>

<head>
<title>Java Course Details</title>
<link rel="stylesheet" type="text/css" href="javac.css">
</head>

<body>
<?php
// Establish database connection
$host = "localhost";
$username = "root";
$password = "";
$database = "enquiry_db";
$conn = new mysqli($host, $username, $password, $database);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

// Retrieve Java course details from the database


$sql = "SELECT * FROM courses WHERE cid = 'java'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$courseName = $row['cname'];
$courseDescription = $row['cdescription'];
} else {
$courseName = "Course details not found.";
$courseDescription = "";
}

// Close the database connection


$conn->close();
?>

<h1>
<?php echo $courseName; ?> Course Details
</h1>

<?php if (!empty($courseDescription)): ?>


<h2>About the Course</h2>
<p>
<?php echo $courseDescription; ?>
</p>

Online Classes Enquiry System 26


<?php endif; ?>
<p>Studying Java can be an immensely rewarding and valuable pursuit for
anyone interested in computer programming and
software development. Java is a versatile and widely-used programming
language with numerous reasons why it's an
excellent choice for aspiring developers and seasoned professionals
alike. </p>

<p>First and foremost, Java's platform independence sets it apart from


many other languages. With the "write once, run
anywhere" capability, Java programs can be executed on any device with
a compatible Java Virtual Machine (JVM). This
means you can develop applications that work seamlessly across various
platforms, including Windows, macOS, Linux,
and even mobile devices like Android. The ability to create cross-
platform software makes Java a powerful tool in
today's diverse technological landscape. </p>

<p> Moreover, Java's object-oriented nature fosters a structured and


modular approach to programming. By organizing
code into reusable objects and classes, developers can create scalable
and maintainable applications.
Object-oriented programming is a fundamental paradigm in the software
industry, and mastering it through Java
provides a solid foundation for learning other languages and
frameworks. </p>

<p>Java's emphasis on security is another compelling reason to study it.


The language incorporates built-in security
features like bytecode verification and automatic memory management
(garbage collection), which help prevent common
vulnerabilities like buffer overflows and memory leaks. This makes Java
a preferred choice for building secure and
reliable applications, especially for web development and enterprise-
level systems. </p>

<p>Furthermore, the extensive standard library and rich ecosystem of Java


offer a treasure trove of resources for
developers. From GUI libraries to networking tools, Java provides a
wide range of pre-built components that
streamline development and reduce the need to reinvent the wheel.
Additionally, the vibrant Java community
continuously contributes to open-source projects and frameworks,
fostering a collaborative environment where
developers can share knowledge and leverage shared solutions. </p>

<p>Finally, Java's widespread adoption and demand in the job market make
it a valuable skill for career growth.

Online Classes Enquiry System 27


Countless organizations, ranging from startups to large enterprises,
rely on Java for building robust applications
and systems. Whether you're aspiring to become a web developer, mobile
app developer, software engineer, or even
pursue a career in data science, knowledge of Java will undoubtedly
open doors to a multitude of exciting
opportunities. </p>

<p>In conclusion, studying Java offers a pathway to becoming a proficient


and versatile programmer with the potential
for vast career prospects. Its platform independence, object-oriented
approach, emphasis on security, rich standard
library, and strong community support make it an attractive language
for both beginners and seasoned professionals
seeking to excel in the dynamic field of computer programming and
software development.</p>

<form action="submit_enquiry.php" method="post">


<br>
<input type="hidden" name="cid" value="java">
<h2>Enquiry Form</h2>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<br>

<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<br>
<div class='box'>
<label for="message">Message:</label>
<textarea id="message" name="message" required placeholder="Enter the
questions and other details you have about the course in this box.
"></textarea>
</div>
<br>

<input type="submit" value="Submit">


</form>
</body>

</html>

Online Classes Enquiry System 28


Final Output:

Online Classes Enquiry System 29


Page for Java:

Page for C:

Online Classes Enquiry System 30


Page for Python:

Once Teacher Login is successful all the queries for the subjects are displayed.

Selecting on the mail ids redirects to Gmail to compose the email to that specific address

Online Classes Enquiry System 31


Future scope: Online Class Enquiry System

 Personalized Learning: As online classes continue to evolve, there will be an


increased emphasis on personalized learning pathways. Future enquiries can
investigate the implementation of data-driven techniques to tailor content,
assessments, and instructional methods based on individual learner preferences and
needs.

 Learning Analytics: The use of learning analytics is likely to grow in the context of
online classes. Future research can delve into how data analytics can be effectively
used to monitor and optimize student progress, identify at-risk learners, and make
data-informed decisions to improve instructional strategies.

 Virtual Classroom Management: With the rise of synchronous online classes,


managing virtual classrooms and ensuring active participation can be challenging.
Future enquiries can explore best practices and tools for fostering student
engagement, interaction, and collaboration in real-time virtual environments.

 Assessment Security and Proctoring: Addressing the challenges of ensuring


academic integrity in online assessments will be a critical area of research. Future
investigations may focus on the development and evaluation of advanced proctoring
technologies and secure assessment methods to prevent cheating.

 Inclusivity and Accessibility: Future research can explore how to make online
classes more inclusive and accessible for learners with disabilities and diverse
backgrounds. Enquiries may investigate the effectiveness of assistive technologies,
accessible design practices, and support services to cater to the needs of all learners.

 Global Collaboration: Online classes provide an opportunity for global


collaboration and cross-cultural learning experiences. Future enquiries can investigate
how to foster international partnerships and cultural exchange through online
educational platforms.

 Social and Emotional Learning (SEL): Research in SEL in the context of online
classes can explore how to promote students' emotional well-being, social skills, and
empathy in virtual learning environments.

 Online Class Platforms and Technology: The future will likely see
advancements in online class platforms and educational technologies. Enquiries may
focus on evaluating the effectiveness and usability of emerging platforms, virtual
classroom tools, and learning management systems.
Conclusion:

The report on the online class enquiry has provided a comprehensive exploration of the world
of online classes, shedding light on its historical background, applications, advantages,

Online Classes Enquiry System 32


challenges, and potential implications for the future of education. Through this investigation,
several key insights have been revealed, underscoring the significance of this innovative
educational approach.

 Advancements in Education:
The historical analysis showcased the remarkable advancements in education, with
online classes emerging as a pivotal outcome of digital technology integration. From
humble beginnings as distance education experiments to the dynamic and interactive
platforms of today, online classes have revolutionized the way knowledge is
disseminated and acquired.

 Unprecedented Access and Flexibility:


The report highlighted that one of the most prominent advantages of online classes is
their ability to provide unprecedented access and flexibility in education. Learners
from diverse backgrounds and geographical locations can now participate in courses,
breaking down barriers to learning and empowering individuals with new skills and
knowledge.

 Challenges and Opportunities:


The enquiry also delved into the challenges posed by online classes, ranging from
technological infrastructure issues to maintaining student engagement and academic
integrity. However, it also underscored the opportunities for improvement and
innovation, such as the integration of emerging technologies, personalized learning
pathways, and data-driven analytics.

 Future Prospects:
As the field of online education continues to evolve, the future prospects of online
classes appear promising. With the continuous development of technologies, the
potential for further innovations, such as virtual reality and augmented reality
integration, presents exciting opportunities to enhance the learning experience.

Conclusion of the Enquiry:

In conclusion, the online class enquiry has shed light on the transformative impact of online
classes in modern education. Through a comprehensive exploration of their history,
applications, advantages, challenges, and future prospects, it becomes evident that online
classes are a driving force behind a more accessible, flexible, and inclusive education
landscape. However, addressing the challenges highlighted in the report and embracing the
opportunities for improvement are essential to unlocking the full potential of online classes in
shaping the future of learning. By continuously refining and advancing online educational
methodologies, we can pave the way for a more equitable, engaging, and effective
educational experience for learners around the globe.

Online Classes Enquiry System 33


REFERENCES

[1] mySQL: https://dev.mysql.com/doc/refman/8.0/en/features.html


[2] Elmasri and Navathe: Fundamentals of Database Systems,5th edition
[3]https://www.mysql.com/products/connector/

[4] https://digitalcommons.harrisburgu.edu
[5]https://www.tutorialspoint.com/mysql/mysql-quick-
guide.htm

Project Report Format Reference:


https://vtu.ac.in/examination-guidelines/#:~:text=PROJECT%20REPORTS,Top
%20and%20Bottom%20%E2%80%93%200.75%E2%80%B3.

Online Classes Enquiry System 34

You might also like