PHP MYSQL before date descending order and after date ascending order( SELECT *
FROM `usersexample`
WHERE date_col<=current_date
ORDER BY date_col DESC )
UNION (SELECT * FROM `usersexample` WHERE date_col >=current_dateORDER BY date_col ASC )
No comments:
Post a Comment