<% ADID=request("id") ADUrl=request("url") if ADID="" or ADUrl = "" then response.write"" response.end end if set rs=server.createobject("adodb.recordset") sql="select ADCount from JK_Link_AD where ADID="&ADID&"" rs.open sql,conn,1,3 rs("ADCount")=rs("ADCount")+1 rs.update rs.close set rs = nothing conn.close set conn = nothing Response.Redirect(ADUrl) %>