Clouie Ckien 0 Newbie Poster

hi good day guys,
i'm having a trouble with fetching the data i have a list of folder outside like in the picture below


when i click the first folder the picture below shows the output it has duplicates


i want to know what's the problem with my code why it duplicates the folders. can someone help me out. please... thank you in advance

here's my code



Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.