Can someone help me with this one? I want to display the last 10 records max. within each sub-category. My code seems not to be correct because I get all the records for each sub-category. Any help would be appreciated. Thanks.
The following is my output code:
<CFOUTPUT QUERY="get_travel" MAXROWS="10" GROUP="SubCatID" >
<UL type="disc">
<b>#SubCategory#</b>
<CFOUTPUT>
<LI><a href="View.cfm?MainCatID=2&NewsID=#NewsID#">#title#</a>
</LI>
</CFOUTPUT>
</ul>
<div align=right> <a href="travelerView.cfm?SubCatID=#SubCatID#"><font size="1">More #subCategory# >></font></a></div>
</CFOUTPUT>
The following is my output code:
<CFOUTPUT QUERY="get_travel" MAXROWS="10" GROUP="SubCatID" >
<UL type="disc">
<b>#SubCategory#</b>
<CFOUTPUT>
<LI><a href="View.cfm?MainCatID=2&NewsID=#NewsID#">#title#</a>
</LI>
</CFOUTPUT>
</ul>
<div align=right> <a href="travelerView.cfm?SubCatID=#SubCatID#"><font size="1">More #subCategory# >></font></a></div>
</CFOUTPUT>