<!
<%
Dim id
Dim Rs
id = Replace(Trim(Request
If Session("id"&id)<>"" Then
Set Rs = Server
Sql = "Select * From News Where id="&id
Rs
If Rs
Response
Else
Response
Response
Response
End If
Else
Set Rs = Server
Sql = "Select * From News Where id="&id
Rs
If Rs
Response
Else
Dim Dig
Dig =Rs("Dig")
Dig = Dig +
Rs("Dig") = Dig
Rs
Rs
Set Rs = Nothing
Session("id"&id) = id
Response
End If
End If
%>
From:http://tw.wingwit.com/Article/program/net/201311/14358.html