<!--#include file="conn/conn.asp" -->
<!--#include file="conn/function.asp" -->
<%
N_id=request.QueryString("N_id")
conn.execute("update SL_news set N_view=N_view+1 where N_id="&N_id)
Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from SL_news where N_id="&N_id
rs.open sql,conn,1,1
if not rs.eof then
N_view=rs("N_view")
end if
rs.close
set rs=nothing
response.Write ("function view_add(){document.getElementById('view').innerHTML='"&N_view&"';}")
%>
