Dynamic Menu with too many Results
I'm having a problem creating a search page with dynamic menu function. I want to populate the menu with data in the Specialty_1 column. What I get is all results in that column. What I would like is to least each value only once and not multiple times.
How can I limit the dynamic menu to show only once occurrence for each item in the column?
I've attached the php files for review.