diff --git a/tiny-college/db/config.php b/tiny-college/db/config.php
deleted file mode 100644
index 0fc0978..0000000
--- a/tiny-college/db/config.php
+++ /dev/null
@@ -1,13 +0,0 @@
-setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
-} catch(PDOException $e) {
- die("Connection failed: " . $e->getMessage());
-}
-?>
\ No newline at end of file
diff --git a/tiny-college/edit_pages/edit_department.php b/tiny-college/edit_pages/edit_department.php
deleted file mode 100644
index 1d06828..0000000
--- a/tiny-college/edit_pages/edit_department.php
+++ /dev/null
@@ -1,34 +0,0 @@
-prepare("UPDATE school SET SCHOOL_NAME = ? WHERE SCHOOL_CODE = ?");
- $stmt->execute([$name, $id]);
- header("Location: schools.php");
-}
-
-$id = $_GET['id'];
-$stmt = $pdo->prepare("SELECT * FROM school WHERE SCHOOL_CODE = ?");
-$stmt->execute([$id]);
-$school = $stmt->fetch();
-?>
-
-
Edit School
-
-
-
-
\ No newline at end of file
diff --git a/tiny-college/edit_pages/edit_school.php b/tiny-college/edit_pages/edit_school.php
deleted file mode 100644
index 5024b71..0000000
--- a/tiny-college/edit_pages/edit_school.php
+++ /dev/null
@@ -1,46 +0,0 @@
-prepare("UPDATE school SET SCHOOL_NAME = ? WHERE SCHOOL_CODE = ?");
- $stmt->execute([$name, $id]);
- header("Location: schools.php");
- exit();
- } catch(PDOException $e) {
- die("Update failed: " . $e->getMessage());
- }
-}
-
-try {
- $id = $_GET['id'];
- $stmt = $pdo->prepare("SELECT * FROM school WHERE SCHOOL_CODE = ?");
- $stmt->execute([$id]);
- $school = $stmt->fetch();
-
- if(!$school) die("School not found");
-} catch(PDOException $e) {
- die("Error fetching school: " . $e->getMessage());
-}
-
-require_once '../pages/school_manage/header.php';
-?>
-
-Edit School
-
-
-
-
\ No newline at end of file
diff --git a/tiny-college/index.php b/tiny-college/index.php
deleted file mode 100644
index 00b213b..0000000
--- a/tiny-college/index.php
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
- Tiny College Admin
-
-
-
-
-
-prepare("INSERT INTO school (SCHOOL_NAME) VALUES (?)");
- $stmt->execute([$schoolName]);
-}
-
-// Delete
-if(isset($_GET['delete'])){
- $id = $_GET['delete'];
- $stmt = $pdo->prepare("DELETE FROM school WHERE SCHOOL_CODE = ?");
- $stmt->execute([$id]);
-}
-
-// Read
-$stmt = $pdo->query("SELECT * FROM school");
-$schools = $stmt->fetchAll(PDO::FETCH_ASSOC);
-?>
-
-
Schools Management
-
-
-
-
-
-
-
-
- | Code |
- School Name |
- Actions |
-
-
-
-
-
- | = $school['SCHOOL_CODE'] ?> |
- = htmlspecialchars($school['SCHOOL_NAME']) ?> |
-
- Edit
- Delete
- |
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/tiny-college/pages/building_manage/buildings.php b/tiny-college/pages/building_manage/buildings.php
deleted file mode 100644
index f726ce7..0000000
--- a/tiny-college/pages/building_manage/buildings.php
+++ /dev/null
@@ -1,126 +0,0 @@
-
-prepare("DELETE FROM building WHERE BLDG_CODE = ?");
- $stmt->execute([$id]);
- header("Location: buildings.php");
- exit();
- } catch(PDOException $e) {
- die("Delete failed: " . $e->getMessage());
- }
-}
-
-// Handle Create/Update
-if($_SERVER['REQUEST_METHOD'] === 'POST') {
- $bldgCode = $_POST['bldg_code'] ?? null;
- $name = $_POST['name'];
- $location = $_POST['location'];
-
- try {
- if(isset($_POST['create'])) {
- $stmt = $pdo->prepare("INSERT INTO building (BLDG_NAME, BLDG_LOCATION) VALUES (?, ?)");
- $stmt->execute([$name, $location]);
- } elseif(isset($_POST['update'])) {
- $stmt = $pdo->prepare("UPDATE building SET BLDG_NAME = ?, BLDG_LOCATION = ? WHERE BLDG_CODE = ?");
- $stmt->execute([$name, $location, $bldgCode]);
- }
- header("Location: buildings.php");
- exit();
- } catch(PDOException $e) {
- die("Operation failed: " . $e->getMessage());
- }
-}
-
-// Fetch buildings and handle edit mode
-try {
- $buildings = $pdo->query("SELECT * FROM building")->fetchAll();
-
- $building = [];
- if(isset($_GET['edit'])) {
- $stmt = $pdo->prepare("SELECT * FROM building WHERE BLDG_CODE = ?");
- $stmt->execute([$_GET['edit']]);
- $building = $stmt->fetch();
-
- if(!$building) {
- header("Location: buildings.php");
- exit();
- }
- }
-} catch(PDOException $e) {
- die("Database error: " . $e->getMessage());
-}
-
-require_once 'header.php';
-?>
-
-Building Management
-
-
-
-
-
-
-
-
- | Code |
- Building Name |
- Location |
- Actions |
-
-
-
-
-
- | = $b['BLDG_CODE'] ?> |
- = htmlspecialchars($b['BLDG_NAME']) ?> |
- = htmlspecialchars($b['BLDG_LOCATION']) ?> |
-
- Edit
- Delete
- |
-
-
-
-
-
-
\ No newline at end of file
diff --git a/tiny-college/pages/building_manage/footer.php b/tiny-college/pages/building_manage/footer.php
deleted file mode 100644
index d4a1531..0000000
--- a/tiny-college/pages/building_manage/footer.php
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-