Hi,
I have items in the table and am displaying 4 items per row. But it displays all items (or records) from the items table.
How can I add [First][Prev] .... [Next] [Last] buttons so that each page only displays three rows of items?
I have also seen [1][2][3] ...[Last] also.
Both methods will work whichever is simpler.
Thanks.
Here is the current code:
<TABLE>
<cfoutput query="GetFeaturedItems">
<td align="center" >
<table>
<tr>
<TD align="center" bgcolor="white">
<table>
<tr><td>Title: #Title#</td></tr>
<tr><td>Item No:#ItemNo#</td></tr>
</table>
</TD>
</tr>
</table>
</td>
<cfif GetFeaturedItems.currentRow mod 4 eq 0>
<cfif GetFeaturedItems.currentRow gt 1>
</tr>
</cfif>
<tr>
</cfif>
</cfoutput>
</table>
Code:
Open in new window
attached files for pagination, just remove the .txt extension from the end of the cfm file.