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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

INTERNSHIP REPORT – II
On “Online Course Enquiry System”

Submitted in partial fulfilment of the requirement for the award of a Degree of


Bachelor of Engineering
In
Computer Science & Engineering
Submitted by:

Name: Arpit Johri USN: 1NT21CS044

Internship carried out at


Metalman Auto Pvt Ltd
1st floor, JMK Tower, NH 8, 44/5, Kapashera Estate
(Delhi-Gurgaon Border)
New Delhi - 110037 (INDIA)

Internal Guide Head of the Department


(Mrs. Kavitha K K) (Mrs. Chaithra Nayak) (Dr. S Meenakshi Sundaram)
Asst. Professor CSE Asst. Professor CSE Professor and Head CSE

2023 - 2024

i
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CERTIFICATE

This is to certify that the Internship- II entitled “Online Course Enquiry System” is
a bonafide work carried out by Arpit Johri (1NT21CS044), in partial fulfilment for the

award of Degree of Bachelor of Engineering in Computer Science and Engineering

Nitte Meenakshi Institute of Technology, during the year 2023-24.

The Internship Report has been approved as it satisfies the academic requirements with

respect to the Internship work prescribed for a Bachelor of Engineering Degree.

Signature of Internal Guide Signature of HOD

Mrs. Kavitha K K Mrs. Chaithra Nayak Dr. S Meenakshi Sundaram

Asst. Professor CSE Asst. Professor CSE Professor and Head

Examiners

Internal Examiner External Examiner

Name: ………………………………. …………………………………

Signature: …………………………… ………………………………...

ii
ACKNOWLEDGEMENT

I sincerely owe my gratitude to all the people who helped and guided
me to carry out the internship. I am thankful to Dr. H. C. Nagaraj, Principal,
NMIT Bangalore, for all the support he has rendered. I thank Dr. S
Meenakshi Sundaram, Professor and Head, Department of Computer
Science and Engineering for his constant support and encouragement
throughout the tenure of this seminar work.

I am also grateful to the entire team at Metalman Auto Pvt Ltd for
providing a conducive learning environment and the opportunity to work on
real-world data management tasks. The collaborative and supportive
atmosphere at the company significantly contributed to my professional
growth. I would like to sincerely thank my Internal guide Mrs. Kavitha K K,
Asisstant Professor and Mrs. Chaithra Nayak, Asisstant Professor
Department of Computer Science and Engineering for providing relevant
information, valuable guidance and encouragement to complete this internship
work.

I am extremely pleased to thank my parents, family members and


friends for their continuous support, inspiration and encouragement, for their
helping hand and also last but not the least, I thank all the members who
supported directly or indirectly in the internship work process.

Arpit Johri

1NT21CS044

iii
Company Certificate

iv
ABSTRACT

This report encapsulates the work completed during the internship at Metalman Auto Pvt Ltd,
where the role undertaken was that of a Data Management Intern. The primary focus was on
enhancing data management skills through hands-on experience in a dynamic work
environment. The internship provided valuable insights into the manufacturing industry’s
data processes, coordination, and communication, leading to significant professional growth.

The internship involved working on critical projects aimed at optimizing data management
practices within the organization. These projects included the analysis and streamlining of
data workflows, improving data accuracy, and ensuring the efficient handling of large
datasets. The hands-on experience gained through these tasks significantly enhanced my
expertise in data management tools and methodologies.

This experience at Metalman Auto Pvt Ltd not only reinforced my technical abilities but also
broadened my understanding of the practical applications of data management in a
manufacturing context. The skills acquired during this period, including advanced data
analysis, database management, and effective communication, have prepared me for more
advanced challenges in the field of data management. The internship also provided
opportunities to engage in research and stay updated with the latest trends and best practices
in data management, further contributing to my professional development.

v
TABLE OF CONTENTS

Acknowledgement i
Company Certificate ii
Abstract iii
List of Figures iv

1. COMPANY PROFILE 1
1.1 About Company 1
1.2 History of Company 1
1.3 Founders of Company 1
1.4 Activities organized by company 2
1.5 Vision and Mission 2
1.6 Services offered by Company 2

2. INTRODUCTION 10
2.1 Objectives 10
2.2 Problem Statement 10
2.3 Proposed System 11

3. AREAS OF LEARNING 12

4. ABOUT THE PROJECT 13

5. RESULT AND DISCUSSION 27

6. CONCLUSION 31

7. REFERENCE 32

vi
COMPANY PROFILE

METALMAN AUTO PVT. LTD.


1.1 About company

Metalman Auto Pvt Ltd is a leading manufacturer and supplier of automotive


components and assemblies. Established with a vision to be a pivotal player in the
automotive industry, Metalman Auto has consistently demonstrated a commitment to
quality, innovation, and excellence. The company specializes in producing a wide
range of products, including chassis, frames, and other critical components for two-
wheelers and four-wheelers.

1.2 History of company

Since its inception, Metalman Auto Pvt Ltd has grown exponentially, both in terms
of its product portfolio and market presence. The company's journey is marked by
continuous expansion, technological advancements, and a steadfast focus on
customer satisfaction. Over the years, Metalman Auto has established itself as a
trusted partner to some of the leading automotive brands, delivering products that
meet stringent quality standards.

1.3 Founders Of company

Metalman Auto Pvt Ltd was founded by visionary entrepreneurs who foresaw the
burgeoning demand for high-quality automotive components. The leadership team
comprises seasoned professionals with extensive experience in the automotive and
manufacturing sectors. Their strategic guidance and unwavering commitment to
excellence have been instrumental in the company's success and growth.

7
1.4 Activities Organized by company

Team outings provide some well-deserved respite for those stressed brains and create
opportunities for your team to let off steam together, which recharges the workforce.
This, along with regular weekly small game activities and HR-led personality
development sessions focusing on communication skills, helps increase motivation
and ultimately leads to enhanced productivity.

1.5 Vision and mission

Metalman Auto Pvt Ltd aims to be a global leader in the automotive component
manufacturing industry. The company's mission is to deliver superior quality products
that exceed customer expectations, foster innovation, and drive sustainable growth.
Metalman Auto is dedicated to achieving operational excellence, maintaining high
standards of quality, and contributing positively to the community and environment.

1.6 Services Provided

Metalman Auto Pvt Ltd offers a comprehensive range of automotive components and
assemblies. The company's product line includes:

1. Chassis and Frames: Metalman Auto specializes in manufacturing durable and


reliable chassis and frames for two-wheelers and four-wheelers, ensuring optimal
performance and safety.
2. Suspension Components: High-quality suspension components designed to enhance
vehicle stability and comfort.
3. Engine Parts: Precision-engineered engine parts that meet the exacting standards of
leading automotive manufacturers.
4. Body Panels: Robust and aesthetically designed body panels that contribute to the
overall look and structural integrity of vehicles.
5. Welded Assemblies: Customizable welded assemblies tailored to specific client
requirements, ensuring seamless integration into the manufacturing process.

8
2. INTRODUCTION

2.1 Objective

The objective of this project is to develop a comprehensive online course enquiry system
using HTML, CSS, JavaScript, Bootstrap for the frontend, PHP for the backend, and MySQL
for the database. This system includes essential functionalities such as user authentication,
course browsing with detailed descriptions, a dynamic enquiry form, and administrative
management of course information. The aim is to create a seamless and intuitive online
enquiry experience that enhances user engagement and satisfaction. By leveraging modern
web development practices and integrating Bootstrap CSS for efficient styling and responsive
design, the project seeks to deliver a responsive and scalable platform that meets the growing
demands of online education while ensuring robust performance and usability across various
devices.

2.2 Problem Statement

Develop an online course enquiry application enabling users to effortlessly browse courses,
make enquiries, and manage course information. Key features include secure user
authentication, intuitive course management, and seamless enquiry processes to enhance user
satisfaction and streamline the online course enquiry experience.

9
2.3 Proposed System

1. Develop an Online Course Enquiry System : Create a fully functional course enquiry
platform using HTML, CSS, JavaScript, Bootstrap, PHP, and MySQL.
2. Build User Authentication Page : Enable secure login and registration functionalities for
users.
3. Build Course Management : Develop features for browsing courses, viewing details,
making enquiries, and managing course information.
4. Enhance User Experience : Ensure a seamless and intuitive user interface for optimal
course enquiry experience.
5. Integrate Enquiry Form Functionality : Implement a robust enquiry form system to manage
user enquiries before submission.
6. Responsive Design : A responsive and mobile-friendly interface to ensure accessibility
across devices.
7. Course Catalog : A comprehensive catalog showcasing various courses with detailed
descriptions and images.

This system will not only provide a robust solution for online course enquiries but also
leverage modern web development technologies to deliver a dynamic and engaging user
experience, ultimately setting a new standard in online education usability and functionality.

1
0
3. AREA OF LEARNING

Based on the project involving an online course enquiry application developed using various
technologies, here are detailed areas of learning:

1. Frontend Development with HTML, CSS, JavaScript, and Bootstrap :


- Component-Based Architecture : Mastery of creating reusable components, effectively
managing state using JavaScript, and passing data between components to maintain
modularity and efficiency.
- Responsive Design : Proficiency in crafting visually appealing and responsive user
interfaces using CSS and Bootstrap. Focus on enhancing user experience through intuitive
layout and design principles.
- Form Handling : Expertise in managing form inputs, implementing validation techniques,
and handling submission events within the frontend to ensure data integrity and user-friendly
interactions.

2. Backend Development with PHP :


- Server-Side Scripting : Understanding the fundamentals of PHP for server-side scripting,
including handling form submissions, processing user inputs, and interacting with the
database.
- User Authentication : Implementing secure user authentication mechanisms, including
login and registration processes with encrypted passwords.
- Data Management : Developing capabilities for managing course information, processing
enquiries, and performing CRUD (Create, Read, Update, Delete) operations on the database.

1
1
3. Database Management with MySQL :
- Database Design : Proficiency in designing and creating relational database schemas to
efficiently store and retrieve course information and user enquiries.
- SQL Queries : Skill in writing SQL queries to perform data retrieval, insertion, updating,
and deletion operations, ensuring efficient and accurate data management.
- Database Integration : Integrating the MySQL database with the PHP backend to enable
seamless data flow and interaction between the application layers.

4. Development Environment and Tools :


- IDE (Visual Studio Code) : Utilizing Visual Studio Code for efficient coding, debugging,
and project management.
- Version Control (Git) : Implementing version control practices using Git to manage code
versions, collaborate with team members, and maintain a history of code changes.
- Hosting (Apache Server) : Deploying the application on an Apache server to make it
accessible to users, ensuring proper configuration and management of the hosting
environment.

These skills have been instrumental in developing an online course enquiry application that
facilitates smooth course browsing, enquiry submission, and management, providing users
with an intuitive and engaging online enquiry experience.

1
2
4. ABOUT THE PROJECT

Components:
-- 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),
1
3
FOREIGN KEY (cid) REFERENCES courses (cid)
);

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

Footer.jsx

Index.js

Main.jsx

Navbar.jsx

Files used in the making of the report:


 index.php

1
4
<!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;
line-height: 1.8;
}

ul {
list-style: none;
padding: 0;
1
5
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;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
}

/* input[type="text"], */
input[type="email"],
textarea {
1
6
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;
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;
1
7
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>

<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
1
8
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
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.
1
9
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">
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
2
0
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>
<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.

2
1
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>
</div>

<br><br><br><br>
<hr>
<hr>
<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>
2
2
</form>
</div>
</body>

</html>

 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) {
2
3
$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">
</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
2
4
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>
<?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'];

2
5
// 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();
?>

 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"];

2
6
// 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
$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>
2
7
<input type="password" id="password" name="password" required><br>

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


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

 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 {
2
8
$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>
<?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
2
9
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.
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>
3
0
<br>

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


</form>
</body>

</html>

Final Output:

3
1
Page for Java:

3
2
Page for C:

Page for Python:

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

Future scope: Online Class Enquiry System


3
4
 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:
3
5
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, 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.

:
3
6
3
7
3
8
6. CONCLUSION

In conclusion, the development of the Online Course Enquiry System has been a significant
milestone in mastering full-stack web development. This project has involved the use of
various technologies, including HTML, CSS, JavaScript, Bootstrap, PHP, and MySQL, to
create a dynamic and responsive platform for course enquiries.

By adopting a component-based architecture in the frontend, effectively managing state with


JavaScript, and utilizing Bootstrap for styling and responsive design, this project has
demonstrated a solid understanding of modern web development practices. The user interface
design focused on enhancing user experience through intuitive layouts and aesthetic appeal,
making the application both user-friendly and visually engaging.

The backend development using PHP included implementing secure user authentication,
processing form submissions, and integrating with the MySQL database to handle data
efficiently. This ensured that user data was managed securely and that the application could
perform CRUD operations effectively.

The project also highlighted the importance of database management, with a well-designed
relational schema in MySQL to store and retrieve course information and user enquiries
accurately. Additionally, using tools like Visual Studio Code for development, Git for version
control, and Apache server for hosting further reinforced best practices in software
development and deployment.

Looking forward, the skills and knowledge gained from this project—ranging from frontend
optimization and responsive design to backend integration and database management—will
be invaluable in future projects. This project not only showcases proficiency in a
comprehensive tech stack but also reflects a commitment to delivering robust, secure, and
user-centric web solutions. As the landscape of web development continues to evolve, the
experiences and lessons learned from this project will drive continuous improvement and
innovation in creating effective online systems.

7. REFERENCES

 W3school : https://www.w3schools.com/react/
 Fontawesome: https://fontawesome.com/.
 Unsplash: https://unsplash.com

 Udemy : https://www.udemy.com
32

You might also like