I'm trying to run a query to return a result from the database that is enter with the next calendar date.
So, I have two entries in the database, entry 1 has a match_date of May 6 (20060506) and entry 2 has a match_date of May 13 (20060513). So right now, entry 1 should be displayed until May 7, then May 13 should be displayed. I hope that explains in fairly good detail what I am trying to achieve. Here is my query:
SELECT date_format(fixture_date, '%b.%e.%Y')as match_date, fixture_id, opponent, location, match_type FROM fixtures WHERE ????? ORDER BY fixture_date DESC LIMIT 1
I'm not sure about the WHERE clause, can someone please help?