<% ADID=request("id") 'ADUrl=request("url") if ADID="" then' or ADUrl = "" Response.Redirect("http://www.jk58.com") end if set rs=server.createobject("adodb.recordset") sql="select Hits,ADTextUrl from JK_Media_AD where ADID="&ADID&"" rs.open sql,conn,1,3 rs("Hits")=rs("Hits")+1 ADUrl=rs("ADTextUrl") rs.update rs.close set rs = nothing conn.close set conn = nothing Response.Redirect(ADUrl) %>