Posted by Krustov on 11/02/09 11:32
<comp.lang.php , Philip Ronan , invalid@invalid.invalid>
<BFA422F1.3B1F8%invalid@invalid.invalid>
<Sat, 19 Nov 2005 00:31:45 +0000>
> > - how do I create the 1-28 days end date/time
>
> $endTime = time() + $days * 24 * 3600; // $days = 1-28
>
> > - how do I check it against the creation date time
>
> if (time() > $endTime) die("This poll has ended.");
>
Works a treat - thanks .
Navigation:
[Reply to this message]
|