Results 1 to 1 of 1

Thread: CF Loop in CF File

  1. #1
    Join Date
    Mar 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CF Loop in CF File

    As you can see the code executes and creates scrollerData.txt with "Caption is:"the caption in the database", but it only creates the first record it finds. I have tried several implementations of cfloop to try to get it to create all the captions.


    <cfquery name="feed" datasource="rss">
    SELECT caption,link,active
    FROM feeds
    WHERE active = 1
    </cfquery>


    <cfoutput>

    <cffile action="write"
    file="#currentPath#scroller/scrollerData.txt"
    output="Caption is:#feed.caption#">

    </cfoutput>
    How Can I fix this ??



    ___________________________
    Smith
    Last edited by keyboard; 03-05-2019 at 10:58 AM. Reason: Removed spam

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •