RE: [PHP] date iteration

2006-05-24 Thread Jef Sullivan
ect: Re: [PHP] date iteration mktime() args are hour/minute/second/month/day/year or somesuch. You are passing in a string, which PHP tries to convert to int, which results in who knows what, on the line that starts $added = On Tue, May 23, 2006 6:11 am, Dave Goodchild wrote: > Hi all, I a

Re: [PHP] date iteration

2006-05-23 Thread Richard Lynch
mktime() args are hour/minute/second/month/day/year or somesuch. You are passing in a string, which PHP tries to convert to int, which results in who knows what, on the line that starts $added = On Tue, May 23, 2006 6:11 am, Dave Goodchild wrote: > Hi all, I am writing an app that runs a prize

Re: [PHP] date iteration

2006-05-23 Thread Rabin Vincent
On 5/23/06, Dave Goodchild <[EMAIL PROTECTED]> wrote: Hi all, I am writing an app that runs a prize draw, wherein the admin chooses the duration by adding a start date and number of days for the draw to run. These values are passed into a small function that generates an array holding the start d

[PHP] date iteration

2006-05-23 Thread Dave Goodchild
Hi all, I am writing an app that runs a prize draw, wherein the admin chooses the duration by adding a start date and number of days for the draw to run. These values are passed into a small function that generates an array holding the start date, end date and all dates in between as follows: fun