Yes, it should be #photo#...I rewrote it too quickly.

This worked:

<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(13)&chr(10)#">

        <cfoutput>#photo# - #photo_count#</cfoutput><br>
        
        <cfset photo_count = photo_count + 1>
        
</cfloop>

Thanks!

Rick

> -----Original Message-----
> From: Greg Morphis [mailto:[EMAIL PROTECTED]
> Sent: Sunday, July 20, 2008 12:22 AM
> To: CF-Talk
> Subject: Re: Why won't this work to give me a list of photos?
> 
> What's #index# ?
> you dont have that variable declared anywhere.. should be #photo# right?
> 
> On Sat, Jul 19, 2008 at 10:13 PM, Rick Faircloth
> <[EMAIL PROTECTED]> wrote:
> > 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>
> >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309310
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to