Page 1 of 1

How to get weekly time e.g from thursday to thursday???

Posted: Mon Mar 14, 2011 6:52 am
by hmdnawaz
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.

Re: How to get weekly time e.g from thursday to thursday???

Posted: Mon Mar 14, 2011 9:56 am
by spamyboy
I think you want

Code: Select all

strtotime('+7 days', $now)
.