necesito vuestra ayuda:
Necesitaba un contador de descargas (y de web no tengo ni idea) así que buscando por internet encontré el código publicado por una chica que es el siguiente:
Código:
el problema es que al intentar utilizarlo me sale el siguiente error.<% link = request.querystring("link") if link = "" then link = -1 end if if link <> -1 then sqltxt="select * from clicks where url='"&link&"'" Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("contadordescargas.mdb")) set rs=createobject("ADODB.Recordset") rs.open sqltxt,conn if rs.eof then rs.addnew rs("url") = link rs("cantidad") = 1 rs.update else rs("cantidad") = rs("cantidad")+1 rs.update end if rs.close set rs=nothing Conn.Close response.redirect link else%><title>contadordescargas</title> <center>No se ha especificado ningún archivo o enlace<br> <a href="javascript:history.go(-1)">Atrás</a> </center> <% end if %>
Código:
alguien me puede ayudar??ADODB.Recordset error '800a0cb3' Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. /Descargas/contadordescargas.asp, line 21
gracias de antemano.
aquí la web de donde lo saqué:
http://www.gamarod.com.ar/articulos/contador_de_descargas.asp