I want to recieve emails on weekly manner from thursday to thursday. For this how can i set the variables to pass to the sql query.
I worte this
$start_date = mktime(0, 0, 1, date("m"), date("j")-7, date("Y"));
but it will calculate date from today.
And I want to recieve emails on every friday morning.
So please write the code for me also write the end date.
Thanks in advance.
How to get weekly time e.g from thursday to thursday???
Moderator: General Moderators
- spamyboy
- Forum Contributor
- Posts: 266
- Joined: Sun Nov 06, 2005 11:29 am
- Location: Lithuania, vilnius
Re: How to get weekly time e.g from thursday to thursday???
I think you want .
Code: Select all
strtotime('+7 days', $now)