diff --git a/DatabaseAdministration.php b/DatabaseAdministration.php
index 3974bcb..020a454 100644
--- a/DatabaseAdministration.php
+++ b/DatabaseAdministration.php
@@ -1,36 +1,47 @@
connect_error) {
die ("Connect Error (".$conn->connect_Errorno.") ".$conn->connect_error);
}
+ // Select schoolenrollment.Students table
$sql = "SELECT * FROM schoolenrollment.Students";
$result = $conn -> query($sql);
+ // Close the database connection
$conn -> close();
?>
+
+
-
+
Enroll_Now
+
Staff member? Click here for the staff portal.
+
-
+
+
-
\ No newline at end of file
diff --git a/StaffAccountCreation.php b/StaffAccountCreation.php
index 27bc30b..ae852be 100644
--- a/StaffAccountCreation.php
+++ b/StaffAccountCreation.php
@@ -1,19 +1,25 @@
connect_error) {
die ("Connect Error (".$conn->connect_Errorno.") ".$conn->connect_error);
}
+ // Select school.course table
$sql = "SELECT * FROM school.course";
$result = $conn -> query($sql);
+ // Close the database connection
$conn -> close();
?>
+
+
Join the thomasian team!
+
diff --git a/StaffManagement.php b/StaffManagement.php
index c33e059..b7aa394 100644
--- a/StaffManagement.php
+++ b/StaffManagement.php
@@ -1,36 +1,47 @@
connect_error) {
die ("Connect Error (".$conn->connect_Errorno.") ".$conn->connect_error);
}
+ // Select schoolenrollment.students table
$sql = "SELECT * FROM schoolenrollment.Students";
$result = $conn -> query($sql);
+ // Close database connection
$conn -> close();
?>
+
+
System Dashboard
diff --git a/StudentAccountCreation.php b/StudentAccountCreation.php
index 126887b..21bdf57 100644
--- a/StudentAccountCreation.php
+++ b/StudentAccountCreation.php
@@ -1,26 +1,35 @@
connect_error) {
die ("Connect Error (".$conn->connect_Errorno.") ".$conn->connect_error);
}
+ // Select school.course table
$sql = "SELECT * FROM school.course";
$result = $conn -> query($sql);
+
+ // Close the database connection
$conn -> close();
?>
+
+
+
Sign up
+
+
+
+
Your journey starts here!
+
diff --git a/StudentEnrollment.php b/StudentEnrollment.php
index a6f5d8f..39487db 100644
--- a/StudentEnrollment.php
+++ b/StudentEnrollment.php
@@ -1,18 +1,22 @@
connect_error) {
die ("Connect Error (".$conn->connect_Errorno.") ".$conn->connect_error);
}
+ // Select school.course table
$sql = "SELECT * FROM school.course";
$result = $conn -> query($sql);
-
$ENRL_YEAR = date("Y");
$STU_ACCT_PASSWORD = $_REQUEST["PASSWORD"];
+
+ // Query for Inserting values into student_account table
$add_stu_acct_query = "INSERT INTO student_account(ENRL_YEAR, STU_ACCT_PASSWORD) VALUES ($ENRL_YEAR, '$STU_ACCT_PASSWORD');";
mysqli_query($conn, $add_stu_acct_query);
$STU_ID = $conn->insert_id;
+ // Variable Instantiation
$STU_EMAIL = $_REQUEST["EMAIL"];
$STU_FNAME = $_REQUEST["FNAME"];
$STU_MI = $_REQUEST["MI"];
@@ -22,28 +26,35 @@
$DEPT_ID = $_REQUEST["DEPT_ID"];
$SPEC_ID = $_REQUEST["SPEC_ID"];
+ // Query for Inserting values into student table
$add_stu_query = "INSERT INTO student(STU_ID, ENRL_YEAR, STU_FNAME, STU_MI, STU_LNAME, STU_BDAY, STU_GENDER, DEPT_ID, SPEC_ID, STU_EMAIL)
VALUES ($STU_ID, $ENRL_YEAR, '$STU_FNAME', '$STU_MI', '$STU_LNAME', '$STU_BDAY', '$STU_GENDER', $DEPT_ID, $SPEC_ID, '$STU_EMAIL');";
mysqli_query($conn, $add_stu_query);
+ // Close the database connection
$conn -> close();
?>
+
+
Enrollment
+
+
+
- Notifications
- Messages
+
- Logout
+
= $STU_FNAME ?>'s Profile