'.$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
$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
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++;
}
?
3 matches
Mail list logo