You could also maybe do something like... <cfquery datasource="dsname" name="getallfiles"> SELECT photofilename + '.' + photoformat as theFiles from tblPhoto; </cfquery>
<cfset lstFiles = ValueList(getAllFiles.theFiles) /> <cfdump var="#lstFiles#" /> HTH On 07/09/06, Tom King <[EMAIL PROTECTED]> wrote: > I think I've been staring at this too long: This seems to return an > empty list?? > What am I doing wrong? > > > <cfset MyList = ""> > <cfquery datasource="dsname" name="getallfiles"> > SELECT photofilename, photoformat from tblPhoto; > </cfquery> > > <cfloop query="getallfiles"> > > <cfset thisfile = "#photofilename#.#photoformat#"> > <cfset ListAppend(MyList, "#thisfile#)> > > </cfloop> > > <cfdump var="#MyList#"> > > > Ta > > T > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2043 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
