Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many times files download from net
Message
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Titre:
How many times files download from net
Divers
Thread ID:
01072202
Message ID:
01072202
Vues:
78
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
Répondre
Fil
Voir

Click here to load this message in the networking platform