Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/10/2003, 10:31
Avatar de RucarMaN
RucarMaN
 
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
%>
__________________
Con la ayuda de todos seremos mejores...

http://www.pemoweb.com