Add New Student
+ + += htmlspecialchars($error) ?>
+ +diff --git a/add_student.php b/add_student.php new file mode 100644 index 0000000..420b087 --- /dev/null +++ b/add_student.php @@ -0,0 +1,148 @@ +prepare("INSERT INTO students (studentCode, firstName, lastName, gender, dateOfBirth) VALUES (?, ?, ?, ?, ?)"); + $stmt->execute([$studentCode, $firstName, $lastName, $gender, $dateOfBirth]); + + header('Location: students.php?success=1'); + exit; + } catch (PDOException $e) { + $errors[] = 'Database error: ' . $e->getMessage(); + } + } +} +?> + + +
+ + += htmlspecialchars($error) ?>
+ += ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.
-This page will update automatically as the plan is implemented.
-Runtime: PHP = htmlspecialchars($phpVersion) ?> — UTC = htmlspecialchars($now) ?>
Welcome to the School Assessment Management System. Use the sidebar to navigate to different management sections.
+