<% ' get news, excluding the one we're focused on IF we're on the story page excludeID = request("excludeID") ' only story.asp will send this var; home will not if excludeID = "" then excludeID=0 '---------------------------------- set rs = server.createobject("ADODB.recordset") rs.activeconnection = foilit_conn rs.source = "select * from tableNews where newsID <> " & excludeID & " order by newsID desc" rs.cursortype = adOpenForwardOnly rs.cursorlocation = adUseServer rs.locktype = adLockOptimistic rs.open() %> news <% while not rs.eof %> <% newsID = rs("newsID") newsDate = rs("newsDate") newsDate = RB_displayDate(newsDate) newsHeadline = rs("newsHeadline") newsBrief = rs("newsBrief") newsBrief = replace(newsBrief,vbcrlf,"
") newsBody = rs("newsBody") newsBody = replace(newsBody,vbcrlf,"
") %>

<%=newsHeadline%>
<%=newsBrief%> More...
<%=newsDate%>

<% rs.moveNext wend %> <% rs.close %>