|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Select a date range
Hello all, any help on this will be appriciated.
I create a news management application just like the one used on cnn and yahoo, but I want to enable users to search articles based on the last 7 days . here is my table ID INT(11) UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, Author CHAR(31) NOT NULL, FrDate CHAR(31) NOT NULL, Category CHAR(31) NOT NULL, Headline CHAR(5) NOT NULL, Title1 CHAR(255) NOT NULL, Title2 CHAR(255) NOT NULL, Summary text NOT NULL, Article text NOT NULL, Date DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', Archive CHAR(5) NOT NULL )TYPE=MYISAM AUTO_INCREMENT=2 ; I want to write a query that will populate the past 5 days in an array Like this... <select><option>date 0</option> <option>date1</option> and so on... . Also I want to have a drop down list of the last five days in an Array and whenever a user selects a date from the array through the drop down list they can search articles pertaining to that date . Any help on this will be appreciated. Thanks |
|
#2
|
|||
|
|||
|
RE: Select a date range
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Select a date range |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|