stopping loop

Post Reply
melvint9
Posts: 19
Joined: Wed Oct 03, 2001 11:09 am

stopping loop

Post by melvint9 »

I configured the search results page to include title headers within a table above the search result links. Is there a way to stop the title headers from displaying multiple times (diplaying above each returned result). What I'm trying to do is get the title headers to display once on a page and if there is more than 1 page, once on each page.

Mt
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

stopping loop

Post by John »

The usual way to do that is with $loop and something which looks as follows:

<SQL MAX=$resultsperpage "select ....">
<if $loop eq 0>
Table headers etc you only want shown once
</if>
Regular result row
</SQL>
John Turnbull
Thunderstone Software
Post Reply