Im trying to figure out how to write a query to get results by weeks.
For example, If I wanted to see the results for this week, I would need to find the beginning of the week and the end of the week.
The query Im wanting to build will only show the current week, but it will change dynamically as days go by. So whatever day you look at the list, it will grab that weeks worth of results.
I think I can use the date('w') to get the day of the week and then either subtract it to 0 or add it to get the sum of 6 and then use those counts to modify the start and end dates.
Or can date('W') be used where it gives me the week of the year? I dont know about using that one because I wouldnt be able to get any dates.
Anyone have any ideas to start me correctly?