listing dates ranges
| From: | rory oconnor | Date: | Fri, 22 Mar 2002 06:24:58 +0000 |
| Subject: | listing dates ranges | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89654@lists.php.net to get a copy of this message | ||
I am writing a php front-end to create dynamic queries on a mysql
database, and i'm a pretty new programmer!
I want to offer the user a date range, and the dates I want to use are
stored in my database:
2002-02-17
2002-02-24
2002-03-02
2002-03-09
2002-03-15
...
and I can select them, but what method can i use to list them out in a
drop-down side-by-side so the user can select the range?
Select date range:
2002-02-17 to 2002-02-24
2002-02-24 to 2002-03-02
2002-03-02 to 2002-03-09
2002-03-09 to 2002-03-15
2002-03-15 to present
any help appreciated!
thanks,
rory