<%
id=trim(request("id"))
if id="" or not isnumeric(id) then
id=0
end if
set rs1=conn.execute("select id,title,content,pic from sd_pic where id="&id&"")
if rs1.eof then
response.Redirect("cpzs.asp")
response.End()
else
conn.execute("update sd_pic set hits=hits+1 where id="&id&"")
end if
%>