% owen=request("id") id=cstr(request("id")) Set rsnews=Server.CreateObject("ADODB.RecordSet") sql="update news set hits=hits+1 where id="&id conn.execute sql sql="select * from news where id="&owen rsnews.Open sql,conn,1,1 if rsnews.eof and rsnews.bof then response.Write("数据不存在,或已删除!") else title=rsnews("title") 'SiteContent=rsnews("content") %>