Counter of click on a determined link. It memorizes the information about the clicks in a database.
Clicks are saved in a database.
The database is on the root, and has two fields: ID (counter) and click (numeric).
<%
database = "click.mdb"
strConn = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & server.mappath(database)
SQL = "INSERT INTO click (count) values(1) WHERE ID = " & request.querystring("codice")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open SQL, strConn
response.redirect ( Request.Querystring("url") )
%>