ok just a few questions about list looping & dates
this may look funky but i am sure it is simple..

for a select box if i want to loop threw a list of dynamically generated
dates, only showing month & year
How would i do this??
 
Drop Down List
January 2002 
February 2002 to January 2005

how would i go about this?

<CFSET todayDate = #DateFormat(Now(), "mm/dd/yyyy")#>
<b>Select Date:</b> 
   <select name="SelectDate">
     <cfloop query="rsDateLoop" startrow="NOW???" endrow="01/01/05">
       <option
value="<cfoutput>#rsDateLoop.SelectDate#</cfoutput>"><cfoutput>#rsDateLoop.S
electDate#</cfoutput></option>
     </cfloop>
   </select>

Then how would i use that, say in a new select statement
where i only wanted to display results that had been entered 
during the month that was passed?

<cfquery name="rsKid" datasource="kid" dbtype="ODBC">
SELECT KidDate, Blagh, blah, Bla
FROM tblKid
WHERE  KidDate IN #FORM.SelectDate#  <<<---????
</cfquery>

any tips / tricks & help would be appreciated!

Thank You
-paul
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to