Looping a query...?

admin

Administrator
Staff member
?wondered if someone could give me a detailed explanation of how to do this:

I have a news tabel where there are 4 news that should be shown, news 1 and 2 is big news, and has one table "set".. and news 3 and 4 is small news and should have it's own table "set"..

My select statement:
select * from News Where SortNr <> 0

How must I type the loop statement for just outputting news 1 and 2 in one loop, and news 3 and 4 in another loop..? could someone please tell me..?
 
Back
Top