Posted by Toby A Inkster on 03/07/07 06:53
_Skare_Krow_ wrote:
> $interval = strtotime("1 week");
This doesn't do what you think it does. strtotime() doesn't output
intervals; it outputs timestamps; here is it returning the timestamp for
the date one week from today.
You need to calculate the interval by yourself:
$interval = 7 * 24 * 60 * 60; // seconds in one week
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|