<%
' If date is in the future redirect to default
if DateDiff("d",CDate(#7/25/2009#),date()) < 0 then
response.redirect("default.asp")
end if
%>
Shortstops With 25 Or More Home Runs In One Season
Daily Baseball Quiz
Saturday, July 25, 2009
Today's theme is: Shortstops With 25 Or More Home Runs In One Season
Who was the first shortstop to have 100 walks and hit 25 home runs in the same season?
<%
' Get the current date
currentDate = date()
' Convert the expiration date
expdate = CDate(#7/25/2009#)
' Compare dates
comparison = DateDiff("d",expdate,currentDate)
' If date is in the past display the link
if comparison > 0 then
%>
<% End if %>
<%
' Set the connection string and open the connection
set conn = server.Createobject("ADODB.Connection")
conn.Open ("DSN=counter")
sql = "SELECT * from counter WHERE counterID = " & cint(206)
set rs = conn.execute(sql)
counter = cint(rs("Count"))
counter = counter + 1
sql = "UPDATE counter set Count ='"& counter &"' WHERE counterID = 206"
set rs = conn.execute(sql)
Set rs = Nothing
conn.close
set conn = nothing
%>