<%
strTodayDate = Date()
strTodayDate = Day(strTodayDate) & " " & MonthName(Month(strTodayDate)) & " " & Year(strTodayDate)
strSQL = "SELECT NewsID, Title, " & _
"ShortArticle, Photo1 " & _
"FROM News " & _
"WHERE '" & strTodayDate & "' BETWEEN StartDate AND EndDate"
set rsNews = con.execute(strSQL)
if Not rsNews.EOF then
%>
<%
do while not rsNews.EOF
i_NewsID = rsNews("NewsID")
s_Title = rsNews("Title")
s_ShortArticle = rsNews("ShortArticle")
s_Photo1 = rsNews("Photo1")
%>
 |
<%=Server.HTMLEncode(s_Title)%>
<%=Replace(Server.HTMLEncode(s_ShortArticle), chr(10), " ")%> |
<%
if Not IsNull(s_Photo1) then
%>
<%
else
Response.Redirect " "
end if
%> |
<%
rsNews.MoveNext
Loop
%>
<%
end if
Set rsNews = Nothing
%>