Friday, March 11, 2005

CFOUTPUT Question

How do I get cfoutput to only return a certian number of results? I am trying to make a randomized page.

Setting the maxrows in the query tag is an option.

cfquery ... maxrows="45"

And as far as Randomizing your query, I'd suggest using:

ORDER BY NewId()

This gives a unique order by each execution, and will cause the results to be randomized.

0 Comments:

Post a Comment

<< Home