House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home / Groups / ColdFusion Talk (CF-Talk)

Why won't this work to give me a list of photos?

Author:
Greg Morphis
07/20/2008 12:24 AM

What's #index# ? you dont have that variable declared anywhere.. should be #photo# right? > What's wrong with this code? > > (I don't get an error message from CF, just an IE Error 500...) > > Thanks, > > Rick > > <cffile action="read" > file="e:\inetpub\webroot\real_estate_data\hmls\data\2008_0719_idx_custom\active_photos.txt" > variable="photos"> > > <cfset photo_count=1> > > <cfloop index="photo" list="#photos#" delimiters="#chr(10)#"> > >        <cfoutput>#index# - #photo_count#</cfoutput><br> > >        <cfset photo_count = photo_count + 1> > > </cfloop> > > >


Mailing Lists