KATEGORİYE GÖRE KODLANDIĞI İÇİN SADECE O KATEGORİYE AİT ÖNCEKİ VE SONRAKİ KONUYU GÖSTERİR.
<%
set ok = conn.execute("select id as oncekiid from tbl where id < "&sid&" and alt_kategori="&rssubcat("id")&" order by id desc")
set okb = conn.execute("select baslik as obaslik from tbl where id < "&sid&" and alt_kategori="&rssubcat("id")&" order by id desc")
set sk = conn.execute("select id as sonrakiid from tbl where id > "&sid&" and alt_kategori="&rssubcat("id")&" order by id asc")
set skb = conn.execute("select baslik as sbaslik from tbl where id > "&sid&" and alt_kategori="&rssubcat("id")&" order by id asc")
%>
<%if not ok.bof then%>
" rel="prev" href="?sid=<%=ok("oncekiid")&"&"&lcase(cevir(okb("obaslik")))&".html"%>">« Önceki Konu
<%end if%>
<%if not sk.bof then%>
" rel="next" href="?sid=<%=sk("sonrakiid")&"&"&lcase(cevir(skb("sbaslik")))&".html"%>">Sonraki Konu »
<%end if%>
<%ok.close :set ok = nothing : okb.close :set okb = nothing : sk.close :set sk = nothing : skb.close :set skb = nothing : rssubcat.close : set rssubcat = nothing%>
Ek Olarak: