This is what I got so far. I'm looping my category names into a table and trying to link them to sections on the same page below the table of categories.
What am I doing wrong?
What am I doing wrong?
Code:
<cfoutput>
<cfset I = 1>
<cfset columns = 3>
<table align="center" cellspacing="5" cellpadding="5" border="0">
<cfloop query="GetCat">
<cfif i MOD columns EQ 1>
<tr>
</cfif>
<td><a href="Section1?catID=#FAQCatID#">#GetCat.FAQCategoryName#</a></td>
<cfif i MOD columns EQ 0>
</tr>
</cfif>
<cfset i = i + 1>
</cfloop>
<cfif i MOD columns NEQ 1>
</tr>
</cfif>
</cfoutput>
</table>
<a name="Section1">This is section 1!!</a>