Soldato
- Joined
- 5 Dec 2003
- Posts
- 2,716
- Location
- Glasgow
Hey, I have this code that is pretty simple, it is meant to go through each record in a table and then put these into an xml file but it it just entering the same record multiple times, can anyone see anything wrong with the code?
Code:
<cfloop from="1" to="#coursefeed.RecordCount#" index="ctr">
<cfscript>
title = coursefeed.coursename[ctr];
description = coursefeed.signups[ctr];
</cfscript>
<cfoutput>
<item>
<title>#title#</title>
<description>#description#</description>
</item>
</cfoutput>
</cfloop>