What I want to ask is how to select from database record and my php code able to sort previous date by date,which is what i want to display in my interface:
I think what you want can be achieved by sorting the results in the db and removing duplicates by grouping
SELECT date FROM staff WHERE date < '$Current' ORDER BY date ASC GROUP BY date;