Student enrollment into same course different section

Get students that are enrolled into the same course of the same year but in different section.

eg. student enrolled into EDUG500-01-s-2020 and in EDUG500-02-s-2020

Location

Script is located in pages/user/checkduplicatecourses.php

Comments

The logic is that we get all the courses of the category selected. Then we get all the students of the courses.(duplicate students are excluded. we get the student once.) We go through all students courses and check if the same student exists in multiple courses of the same “subject“ eg in EDUG500.