Re: [PHP] Drop down list with date

2002-11-12 Thread rija
Try this one:
echo "" ;

for ($d=0 ; $d <7 ; $d++)
echo "".date("d/m/y",
strtotime("+$d day"))."\n " ;
echo "
" ;

- Original Message -
From: "Miguel Brás" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 13, 2002 4:15 AM
Subject: [PHP] Drop down list with date


> Hello guys,
>
> I have a question:
>
> How can I create a drop down menu where the choices are the days of the
> month, displaying always the next 7 days?
>
> What I mean is, create a drop down menu and show the today's date, next
day,
> and next...
>
> Example: Today is 12th, then the menu shows the following option to be
> choosen
> 12/11/02
> 13/11/02
> 14/11/02
> 15/11/02
> 16/11/02
> 17/11/02
> 18/11/02
>
> Tomorrow 13th will display
> 13/11/02
> 14/11/02
> 15/11/02
> 16/11/02
> 17/11/02
> 18/11/02
> 19/11/02
>
> and so on...
>
> Thx
> Regards
> Miguel
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Drop down list with date

2002-11-12 Thread Jason Wong
On Wednesday 13 November 2002 01:15, Miguel Brás wrote:
> Hello guys,
>
> I have a question:
>
> How can I create a drop down menu where the choices are the days of the
> month, displaying always the next 7 days?
>
> What I mean is, create a drop down menu and show the today's date, next
> day, and next...
>
> Example: Today is 12th, then the menu shows the following option to be
> choosen
> 12/11/02
> 13/11/02
> 14/11/02
> 15/11/02
> 16/11/02
> 17/11/02
> 18/11/02

You'll need to use some combination of time() & strftime(), and whilst not 
strictly necessary but highly recommended strtotime().

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
I bought some used paint. It was in the shape of a house.
-- Steven Wright
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Drop down list with date

2002-11-12 Thread Miguel Brás
Hello guys,

I have a question:

How can I create a drop down menu where the choices are the days of the
month, displaying always the next 7 days?

What I mean is, create a drop down menu and show the today's date, next day,
and next...

Example: Today is 12th, then the menu shows the following option to be
choosen
12/11/02
13/11/02
14/11/02
15/11/02
16/11/02
17/11/02
18/11/02

Tomorrow 13th will display
13/11/02
14/11/02
15/11/02
16/11/02
17/11/02
18/11/02
19/11/02

and so on...

Thx
Regards
Miguel



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php