y [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 6:45 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Re: PHP generation of fields
>
>
> It's been a while since I've done a 'for' statement...
>
> Here's my new working code:
>
attempt of this
code).
-Dash
-Original Message-
From: George Nicolae [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 3:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: PHP generation of fields
you make two mistakes. let's see the correct code:
for ($i=1;$
you make two mistakes. let's see the correct code:
for ($i=1;$i<=12;$i++)
{
if($i == date(m))
//first here ^^^ (must be == not just one "=")
{
$selected = " selected";
}
//here is the second: if $selected ="selected" for $i=4 (may) $i will be
remain selected for all month