% 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 %>
| URL to file | Downloads | Last Download | Downloads/day |
| "><%=rs("fldURL")%> | <%=rs("fldTIMES")%> | <%=rs("fldLAST")%> | <%=Formatnumber(dagar, 2)%> |