
06/10/2003, 10:31
|
 | | | Fecha de Ingreso: julio-2003 Ubicación: Caripito Edo Monagas
Mensajes: 169
Antigüedad: 21 años, 9 meses Puntos: 1 | |
<%
'Response.Buffer=TRUE
urlc = Request.Querystring("urlc")
if urlc <>"" then
Set oConn = Server.CreateObject("ADODB.Connection")
MiConexion = RutaUser
oConn.Open MiConexion
strsql = "SELECT * FROM sitio WHERE url = '" & urlc & "'"
Set rs = Server.CreateObject("ADODB.RecordSet")
RS.open strsql, oConn, 3, 3
if rs.eof then
rs.AddNew
rs("clicks")= 1
rs("url") = url
rs.update
else
rs("clicks")=rs("clicks")+1
rs.update
end if
rs.Close
set rs=nothing
oConn.Close
response.redirect URLC
end if
%> |