Hi Kjetil,
You might pass a param i.e. next_page=ID+1 to your detail page of a record using variable <%last%> inside the loop of your search_results:
<%loop results%>
.....
your link to detail page &
<%ifnot last%>next_page=<%ID+1%><%endif%>¶m..
.....
<%endloop%>
After that, you can add a new link to next record:
<%if next_page%>
db.cgi?db=your_table&do=search_results&ID=<%next_page%>&ID-opt==....
<%endif%>
Cheers,
Jean(at)
Gossamer Threads Inc.
Notes: You can use the following tags inside a loop:
<%row_num%> - a counter for what row is being looped, starts at 1.
<%first%> - boolean that is true if this is the first row, false otherwise.
<%last%> - boolean that is true if this is the last row, false otherwise.
<%inner%> - boolean that is true if this is not first and not last.
<%even%> - boolean is true if row_num is even.
<%odd%> - boolean is true if row_num is odd.