Skip to content

Commit

Permalink
chinh sua ten file co goi den gile students_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
hung1605 committed May 23, 2024
1 parent a895c7a commit e2a30ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion add_student.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

if (addStudent($name, $class, $dob, $address, $gender)) {
echo "Student added successfully.";
header("Location: all_students.php");
header("Location: students_manager.php");
exit();
} else {
echo "Error adding student.";
Expand Down
2 changes: 1 addition & 1 deletion delete_student.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Perform the deletion
if (deleteStudent($student_id)) {
echo "Student deleted successfully.";
header("Location: all_students.php");
header("Location: students_manager.php");
} else {
echo "Error deleting student.";
}
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<td>{$row['MaLop']}</td>
<td>{$row['NgaySinh']}</td>
<td>{$row['DiaChi']}</td>
</tr>";
</tr>";
}
echo "</table>";
} else {
Expand Down
2 changes: 1 addition & 1 deletion update_student.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
if (updateStudent($student_id, $name, $class, $dob, $address, $gender)) {
echo "Student updated successfully.";
// Redirect to a page showing updated student details
header("Location: all_students.php?id=" . $student_id);
header("Location: students_manager.php?id=" . $student_id);
exit();
} else {
echo "Error updating student.";
Expand Down

0 comments on commit e2a30ba

Please sign in to comment.