0) { $stmt = getDB()->prepare("DELETE FROM student_courses WHERE id = ?"); $stmt->execute([$id]); } header('Location: ' . BASE_URL . '/students/view.php?id=' . $student_id); exit;