%
Dim PartyDB, PartySQL, datCurrent
'datCurrent = Month(Now) & Day(Now) & Year(Now)
Dag = Day(Now)
Maand = Month(Now)
Jaar = Year(Now)
Set PartyDB = Server.CreateObject("ADODB.Connection")
PartyDB.Open "HippiesFromHell"
PartyTodaySQL = "Select PartyDate, Subject, ID, Place from Party where PartyDate = #" & Maand & "/" & Dag & "/" & Jaar & "# ORDER BY PartyDate ASC"
PartySQL = "Select PartyDate, Subject, ID, Place from Party where PartyDate > #" & Maand & "/" & Dag & "/" & Jaar & "# ORDER BY PartyDate ASC"
Set PartyTodayRS = PartyDB.Execute (PartyTodaySQL)
Set PartyRS = partyDB.Execute (PartySQL)
%>
<% PartyRS.Close %>
<%
PartySQL = "Select PartyDate, Subject, ID, Place from Party where PartyDate < #" & Maand & "/" & Dag & "/" & Jaar & "# ORDER BY PartyDate DESC"
Set PartyRS = partyDB.Execute (PartySQL)
%>
Parties that were:
Date:
Title:
Where:
<%
If Request("ShowAll") = "Yes" then
Do While Not PartyRS.EOF
MyLoop
PartyRS.MoveNext
Loop
ElseIf request("ShowAll") = "" Or Request("ShowAll") = "No" then
For i = 1 to 10
MyLoop
PartyRS.MoveNext
Next
%>
<% If Request("ShowAll") = "" Or Request("ShowAll") = "No" Then %>
Click ?ShowAll=Yes">here to see the complete party history
<% ElseIf Request("ShowAll") = "Yes" Then %>
Click hereto see only the last 10 parties
<% End If %>