kt03 wrote:
> <cfloop from="1" to = "#numberOfFeedItems#"
index="ctr">
>
> <!--- Then output the fields for each item --->
> <cfoutput>
> <item>
> <title>#author#</title>
> <link>rss.cfm</link>
> <description>#body#</description>
> </item>
> </cfoutput>
> </cfloop>
change the above to:
<cfoutput query="getblog">
<item>
<title>#author#</title>
<link>rss.cfm</link>
<description>#body#</description>
</item>
</cfoutput>
Explanation:
your cfloop + cfoutput construct is wrong:
use just <cfoutput query="getblog"> instead of
<cfloop ...><cfoutput>;
since your query already pulls only 3 top records only those
will be
cfoutput'ed - no need to loop through anything;
alternatively, you can pull ALL records with your query (drop
the TOP
#NumberOfFeedItems#) and then use <cfoutput
query="getblog" startrow="1"
maxrows="#NumberOfFeedItems#">
--
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
http://www.sabai-dee.com