I have the following code setup on my homepage. I was wondering if it would be possible to limit the output to say: 10, 15, 25 entries. Right now it seems limitless.
Thanks in advance
Code:
<% rsG.open "select OrganizationId,OrganizationName,update_date from tblOrganizations where isFeatured=1 order by update_date",conn rsCnt2.Open "select count(*) as cnt from tblOrganizations where isFeatured=1",conn if not rsCnt2.eof then finalCount=finalcount+rsCnt2("cnt") end if rsCnt2.close numberRows=finalCount/4 incr=finalcount mod 4 numberRows=round(numberRows)+incr if rsG.eof and rsG.bof then else iCol=0 while not rsG.EOF if iCol=numberRows and finalCount>4 then Response.Write "</table></td><td valign=top><table border=0>" iCol=0 end if Response.Write "<tr><td valign=top align=left><a href=groupProfile.asp?grpid=" & rsG("OrganizationID") & ">" & rsG("OrganizationName") & "</a></td></tr>" iCol=iCol+1 rsG.MoveNext wend end if %>
Comment