Re: [PHP] Print current and next three years

2003-09-24 Thread Becoming Digital
'.$year.''; } ?> Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Shaun" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, 24 September, 2003 08:29 Subject: [PHP] Print current and next thr

Re: [PHP] Print current and next three years

2003-09-24 Thread Marek Kilimajer
$current=date('Y'); for($i=0;$i<4;$i++){ echo $current + $i; } Shaun wrote: Hi, I am trying to print the current and next three years in a form. Using the following code I can only print 2000, 2001, 2002, 2003: '.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } else { e

[PHP] Print current and next three years

2003-09-24 Thread Shaun
Hi, I am trying to print the current and next three years in a form. Using the following code I can only print 2000, 2001, 2002, 2003: '.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } else { echo ''.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } $i++; } ?