DecentGuy Posted July 7, 2021 Share Posted July 7, 2021 I have a query $result = mysqli_query($conn, "SELECT * FROM a_walk WHERE Date >= CURDATE() ORDER BY Date ASC "); I'd like to limit results to Dates that are on Thursday only (or any specific day) Anyone help Quote Link to comment Share on other sites More sharing options...
Barand Posted July 7, 2021 Share Posted July 7, 2021 ... WHERE Date >= CURDATE() AND DAYOFWEEK(Date) = 5 ... https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_dayofweek Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.