<!--#include file="../inc/conn.asp"-->
<%
tab=trim(request("tab"))
id=trim(request("id"))
if tab="" or id="" then 
response.Write("²ÎÊý´íÎó") 
response.End()
else
  set rs=server.CreateObject("adodb.recordset")
  sql="select hits from "&tab&" where id="&id
  rs.open sql,conn,1,3
  if err then
    response.Write(err.description)
	response.End()
  end if
  if not rs.eof then    
    hits=rs(0)+1
	rs(0)=rs(0)+1
  else
    response.Write("IDÒì³£")
  end if
  rs.update
  rs.close
  set rs=nothing
end if

call closes()
%>
document.write("<%=hits%>");