% Dim connection, rs set connection=server.createobject("adodb.connection") connection.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & database if Request.Form("order") = "url" then set rs = connection.Execute("SELECT * FROM download order by fldURL") elseif Request.Form("order") = "times" then set rs = connection.Execute("SELECT * FROM download order by fldTIMES desc") else set rs = connection.Execute("SELECT * FROM download order by fldLAST") End if antal=0 do until rs.eof antal=antal+1 rs.movenext loop if Request.Form("order") = "url" then set rs = connection.Execute("SELECT * FROM download order by fldURL") elseif Request.Form("order") = "times" then set rs = connection.Execute("SELECT * FROM download order by fldTIMES desc") else set rs = connection.Execute("SELECT * FROM download order by fldLAST") End if set rs2 = connection.Execute("SELECT * FROM dntable order by dndate") %>
| Download Date | # of Downloads |
| <%=rs2("dndate")%> | <%=rs2("cnt")%> |