0% found this document useful (0 votes)
3 views4 pages

Databsereport

The Instructor Management System is a PHP and MySQL-based application designed to manage instructor records with functionalities for adding, viewing, updating, and deleting records. It utilizes a simple interface and is built on the XAMPP environment, employing HTML, CSS, and Bootstrap for the frontend. The system is suitable for educational projects and internal administrative purposes.

Uploaded by

23-se-114
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

Databsereport

The Instructor Management System is a PHP and MySQL-based application designed to manage instructor records with functionalities for adding, viewing, updating, and deleting records. It utilizes a simple interface and is built on the XAMPP environment, employing HTML, CSS, and Bootstrap for the frontend. The system is suitable for educational projects and internal administrative purposes.

Uploaded by

23-se-114
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Instructor Management System Report

Subject: Database and Management Systems


Instructor: Sir Rehan Matloob
Student Name: Muhammad Tabish Nazir
Roll Number: 23-SE-117

Introduction
This project titled "Instructor Management System" has been developed using PHP and MySQL under the XAMPP
environment. The system is designed to add, search, update, and delete instructor records, and provides a simple interface for
managing instructor data effectively.

Technologies Used
• Frontend: HTML, CSS (with Bootstrap Styling)
• Backend: PHP
• Database: MySQL (college_db)

• Environment: XAMPP (Apache + MySQL)

Functional Features
1. Add Instructor
The system includes a form to enter instructor name, email, and subject. Upon submission, this data is inserted into the
MySQL database.
2. View Instructors
All existing instructors are displayed in a table format with options to update or delete.
3. Update Instructor
Each row has an "Update" button that allows real-time editing of instructor information.
4. Delete Instructor
Instructors can be removed from the database via the "Delete" button.
5. Search
The system supports searching instructors by name or ID.

Screenshot of Interface
Figure 1: Instructor Management System Interface
![Instructor Management Interface](Screenshot 2025-06-14 224807.png)

Database Structure
Database Name: college_db
Table Name: instructors
SQL Structure:
CREATE TABLE instructors (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100),
email VARCHAR(100),
subject VARCHAR(100)
);

PHP Code Snippets


Database Connection:
$conn = new mysqli("localhost", "root", "", "college_db");
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
Add Instructor:
if (isset($_POST['add'])) {
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$conn->query("INSERT INTO instructors (name, email, subject) VALUES ('$name', '$email', '$subject')");
}
Delete Instructor:
if (isset($_GET['delete'])) {
$id = $_GET['delete'];
$conn->query("DELETE FROM instructors WHERE id=$id");
}
Update Instructor:
if (isset($_POST['update'])) {
$id = $_POST['id'];
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$conn->query("UPDATE instructors SET name='$name', email='$email', subject='$subject' WHERE id=$id");
}
Search Instructor:
if (isset($_GET['search'])) {
$search = $_GET['search'];
$sql = "SELECT * FROM instructors WHERE name LIKE '%$search%' OR id LIKE '%$search%'";
$result = $conn->query($sql);
}

Conclusion
The Instructor Management System is a simplified but effective solution for managing instructor records using PHP and
MySQL. It provides essential CRUD functionalities, and is ideal for educational projects or internal administrative tools.

Submitted To: Sir Rehan Matloob


Submitted By: Muhammad Tabish Nazir
Roll Number: 23-SE-117
Department: Software Engineering
Institution: HITEC University, Taxila

You might also like