3
The week has 7 days, so I want to be able to make a query that the user according to the day of the week you choose presents the result:
mysql_query("SELECT * FROM tbl_eventos WHERE WEEK(data) = '$semana_atual' AND YEAR(data) = '$ano_atual'");
Now in this consultation, I want to try to fit the day of the week ($dia_semana
) that goes from 1 to 7 and so are presented all the events of that day of the week, week and current year.
That is, if you choose the day of week 4, it will list the events of the day of week 4, which corresponds to Wednesday-made.
Your question is regarding the SQL query or the user interface to choose the day of the week?
– Lucas