I want to sort the results by the days of the week
I have 7 events, 1 event for each day, and you have to sort it as follows:
Sunday, Monday, Tuesday, Wednesday , Thursday, Friday, Saturday
Assuming that today is Wednesday it will have to show all data in this order:
Wednesday , Thursday, Friday, Saturday, Sunday, Monday, Tuesday.
Query:
$sqlCmd2 = "SELECT * FROM account.events ORDER BY FIELD(day, 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday') ASC LIMIT 3";
It is functional.