rendered paste body<cfquery datasource="humsoc" name="recordfinder" maxrows="1">
select *
from #tobble#
</cfquery>
<cfoutput query="recordfinder">
<CFSET x = #numt#>
</cfoutput>
<cfquery datasource="humsoc" name="imager">
select *
from #tobble#
</cfquery>
<cfoutput query="imager">
<CFSET max_roller = #imager.recordcount#>
<CFSET max_rows = INT((#max_roller# +3)/4)>
</cfoutput>
<div id="container" align="center" class="primary">
<TABLE border="0" cellpadding="0" id="spround">
<CFLOOP INDEX="roller_no" FROM="1" TO="#max_rows#">
<TR>
<CFLOOP INDEX="roller" FROM="1" TO="4">
<CFQUERY NAME="build" DATASOURCE="humsoc">
SELECT * FROM #tobble#
WHERE numt = #x#
</CFQUERY>
<cfoutput query="build">
<td width="100" align="center" bgcolor="##FFFFFF" class="tablature"><a onmouseover="P7_autoLayers(0,'preview#x#m')" onMouseOut="P7_autoLayers(0)" ><img src='images/#right(thumb,len(thumb)-62)#' height="100px"></a><br />
#id#<br />
#breed#</td>
<CFSET x = x + 1>
</cfoutput>
</CFLOOP>
</TR>
</CFLOOP>
</TABLE>