This question already has an answer here:
- PHP Date Function Seven days previous 2 answers
I have a query where I want to pass in two variables and I feel like I am almost there but need a bit of guidance.
I have a cron job set up to run at 6pm every Saturday that will select tickets for the last week.
Select tickets that are between 6pm last saturday and 5:59 today bearing in mind that this willl be run at 6pm every saturday.
I'm looking for help to create two variables.
- 6pm last Saturday
- 5:59pm today
Have looked at strtotime and date but can't see anything that would fit?
</div>