Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many times files download from net
Message
From
26/11/2005 10:22:58
 
 
To
All
General information
Forum:
Internet
Category:
Active Server Page
Title:
How many times files download from net
Miscellaneous
Thread ID:
01072202
Message ID:
01072202
Views:
79
i ge thiscodes from http://www.dynamicdrive.com/forums/showthread.php?t=1303

my question i have need some database in back for working,???
<a href=”downloads/winxp/manual.pdf”>









<a href=”downloads.asp?file=manual.pdf”>






<%

Option explicit

Dim strFile

strFile=request..querystring(“file”)

response.redirect “downloads/winxp/”&strfFile

%>










<%

Option explicit

Dim strFile

strFile=request..querystring(“file”)

‘Begins code to update the downloads counter

Set conexion= server.createobject("adodb.connection")

Set rs=server.createobject("adodb.recordset")

strSql="select * from downloads where file='" & strFile &"'"

conexion.open YourStringConnection

rs.open strSql,conexion,1,3

rs("counter")=cint(rs("counter"))+1

rs.Update

rs.Close

Set rs=nothing

conexion.Close

Set conexion=nothing

‘Ends Code to update the downloads counter



response.redirect “downloads/winxp/”&strfFile

%>


<body>

</body>
</html>

<body
Reply
Map
View

Click here to load this message in the networking platform