RE: [PHP] date iteration

2006-05-24 Thread Jef Sullivan
+$i,$syear); $dates[$i] = date( "m/d/Y", $added ); } return $dates; } [SNIP] Good luck, Jef -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 3:27 PM To: Dave Goodchild Cc: php-general@lists.php.net Subj

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