Forums

This topic is locked

Please help - sorting results

Posted 03 May 2002 19:14:08
1
has voted
03 May 2002 19:14:08 Jeff Hansen posted:
i need to have 2 record sets on a page. One is a set of all news - and I do a repeat region on 10 records. then off the side i want to show articles 10-20 in a different format. Anyone know how to do this?

Replies

Replied 06 May 2002 14:34:57
06 May 2002 14:34:57 Marcellino Bommezijn replied:
Just create two recordsets (rsNews1 and rsNews2) and do your stuff.

Replied 07 May 2002 07:08:56
07 May 2002 07:08:56 Jeff Hansen replied:
ya, but way sql do i use to start my recordset at the 10th record? I can't get LIMIT to work like in MySql

Replied 07 May 2002 09:16:28
07 May 2002 09:16:28 Viktor Farcic replied:
You can do it with one recordset and if then statement.
Something like:
<%
Counter = 0
While (Not RecordsetName.EOF) And (Counter < 20)
If Counter < 10 Then
*** Code for format 1 ***
Else
*** Code for format 2 ***
End if
Counter = Counter + 1
RecordsetName.MoveNext()
Wend

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
ya, but way sql do i use to start my recordset at the 10th record? I can't get LIMIT to work like in MySql


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Viktor Farcic

TalkZone Manager

Reply to this topic