Im trying to sort the results of the entry from the current date
this is what i am using now;
SELECT * FROM friends JOIN bdays ON bdays.user = friends.friendname WHERE username = $userid ORDER BY DATE_FORMAT(date, '%m %d')
any ideas?
Example, sorting by date now, sorts birthdays starting in January
what I need, instead of starting the list in January, starts it from the current date.
So, instead of:
January February March April May June July August September November December
He will order them as follows:
April (current month/day) May June July August September November December January February March April (all the way up to yesterday)
source share