diff --git a/San.html b/San.html
new file mode 100644
index 0000000..dce431d
--- /dev/null
+++ b/San.html
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
Student Records
+setAttribute(PDO::ATTR_ERRMODE,
+
+PDO::ERRMODE_EXCEPTION);
+
+// Fetch student records
+
+$stmt = $pdo->query("SELECT * FROM students");
+
+$students = $stmt->fetchAll(PDO::FETCH_ASSOC);
+
+// Selection sort function
+
+function selectionSort(&$arr, $n) {
+
+for ($i = 0; $i < $n - 1; $i++) {
+$min_idx = $i;
+
+for ($j = $i + 1; $j < $n; $j++) {
+
+if ($arr[$j]['gpa'] < $arr[$min_idx]['gpa']) {
+
+$min_idx = $j;
+
+}
+
+}
+
+if ($min_idx != $i) {
+
+$temp = $arr[$i];
+
+$arr[$i] = $arr[$min_idx];
+
+$arr[$min_idx] = $temp;
+
+}
+
+}
+
+}
+
+// Sort students by GPA
+
+selectionSort($students, count($students));
+
+// Display sorted student records
+
+echo "
";
+echo "ID | Name | GPA |
";
+
+foreach ($students as $student) {
+
+echo "";
+
+echo "" . htmlspecialchars($student['id']) . " | ";
+
+echo "" . htmlspecialchars($student['name']) . " | ";
+
+echo "" . htmlspecialchars($student['gpa']) . " | ";
+
+echo "
";
+
+}
+
+echo "
";
+
+} catch(PDOException $e) {
+
+echo "Connection failed: " . $e->getMessage();
+
+}
+
+?>
+
+
+
+
+
+