Here just add this code to your inc_fader.asp after the staements shown in bold.
<%
rsAnnounce.MoveNext
intI = intI + 1
loop
end if
%>
<%
'## Forum_SQL
strSql = "SELECT " & strTablePrefix & "EVENTS.EVENT_ID"
strSql = strSql & ", " & strTablePrefix & "EVENTS.PRIVATE"
strSql = strSql & ", " & strTablePrefix & "EVENTS.EVENT_TITLE"
strSql = strSql & ", " & strTablePrefix & "EVENTS.EVENT_DETAILS"
strSql = strSql & ", " & strTablePrefix & "EVENTS.START_DATE"
strSql = strSql & ", " & strTablePrefix & "EVENTS.END_DATE"
strSql = strSql & " FROM " & strTablePrefix & "EVENTS "
if mLev < 4 then
strSql = strSql & " WHERE " & strTablePrefix & "EVENTS.START_DATE <= " & "'" & DatetoStr(Now()) & "'"
strSql = strSql & " AND " & strTablePrefix & "EVENTS.END_DATE > " & "'" & DatetoStr(Now()) & "'"
end if
strSql = strSql & " ORDER BY " & strTablePrefix & "EVENTS.START_DATE DESC"
strSql = strSql & ", " & strTablePrefix & "EVENTS.EVENT_ID DESC;"
set rsEvents = Server.CreateObject("ADODB.Recordset")
rsEvents.cachesize = 20
rsEvents.open strSql, my_Conn, 3
if not(rsEvents.EOF or rsEvents.BOF) then '## Replies found in DB
rsEvents.movefirst
rsEvents.pagesize = strPageSize
maxpages = cint(rsEvents.pagecount)
end if
if rsEvents.EOF or rsEvents.BOF then '## No replies found in DB
Response.Write ""
else
'rsEvents.movefirst
'intI = intI
do until rsEvents.EOF '**
EventsSubject = rsEvents("Event_TITLE")
EventsID = rsEvents("Event_ID")
EventsLink = strForumURL & "pop_event.asp?Event_ID=" & EventsID
'EventLink = "javascript:openEventWindow('EventsLink')"%>
<param name="text<% =intI %>" value="<% =EventsSubject %> (click)">
<param name="url<% =intI %>" value="<% =EventsLink %>">
<param name="font<% =intI %>" value="Verdana,PLAIN,16">
<%
rsEvents.MoveNext
intI = intI + 1
loop
end if
%>
see here just a beginning...
gauravbhabu
There is only one miracle...That is LIFE!
Edited by - GauravBhabu on 04 July 2001 11:37:44