Detta är bara kopierat rätt av ifrån koden på min sida. Men du kan nog fixa lite :)
<% Option Explicit %>
<!-- #include virtual = "/includes/db_open.asp" -->
<%
Dim strDatum, currDate, antalNyheter, Count
If Request.QueryString("manad") = "" OR Request.QueryString("manad") > 12 Then
currDate = Mid(Date,6,2)
Else
currDate = Request.QueryString("manad")
End If
Select Case currDate
Case "00"
strDatum = "år 2000</b>"
Case "01"
strDatum = "Januari</b> månad"
Case "02"
strDatum = "Februari</b> månad"
Case "03"
strDatum = "Mars</b> månad"
Case "04"
strDatum = "April</b> månad"
Case "05"
strDatum = "Maj</b> månad"
Case "06"
strDatum = "Juni</b> månad"
Case "07"
strDatum = "Juli</b> månad"
Case "08"
strDatum = "Augusti</b> månad"
Case "09"
strDatum = "September</b> månad"
Case "10"
strDatum = "Oktober</b> månad"
Case "11"
strDatum = "November</b> månad"
Case "12"
strDatum = "December</b> månad"
End Select
mySQL = "SELECT COUNT(newsDate) AS newsCount FROM newsTable WHERE Mid(newsDate,6,2) = " & currDate
Set Count = objConn.Execute(mySQL)
antalNyheter = Count("newsCount")
Dim strNews, countColor, bgColor
mySQL = "SELECT * FROM newsTable WHERE Mid(newsDate,6,2) = " & currDate & " ORDER BY newsDate DESC"
Set objRS = objConn.Execute(mySQL)
countColor = 0
If objRS.EOF Then
strNews = strNews & "<tr><td bgcolor=""#223344"" class=""white"" width=""470"" align=""left"" valign=""top""><b>Inga nyheter hittades</b></td></tr><tr><td bgcolor=""#cdcdcd"" class=""normal"" width=""470"">Välj en annan månad i dropmenyn till vänster.</td></tr>"
Else
Do While Not objRS.Eof
countColor = countColor + 1
If countColor mod 2 = 0 Then
bgColor = "#cdcdcd"
Else
bgColor = "#efefef"
End If
strNews = strNews & "<tr><td bgcolor=""#223344"" class=""white"" width=""470"" align=""left"" valign=""top""><b>" & Right(Replace(objRS("newsDate"),"-","/"),5) & "</b> | <b>" & objRS("newsHeader") & "</b></td></tr><tr><td bgcolor=""" & bgColor & """ class=""normal"" width=""470"">" & objRS("newsContent") & "</td></tr>"
objRS.MoveNext
Loop
End If
%>
<!-- include virtual = "/includes/db_close.asp" -->
------------------
"I have to return some video tapes" - Patrick Bateman, American Psycho