v=request("R1")
sql="select * from diaocha where id="&v
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
count=rs("piao")
count=count+v
tsql="update diaocha set piao=" & count & " where id="&v
conn.execute (tsql)
分类ID=request("分类ID")
set rs=conn.execute("select * diaocha where id='"&分类ID&"')
if not rs.eof then
count=rs("piao")
count=count+v
tsql="update diaocha set piao=" & count & " where id="&v
conn.execute (tsql)
else
增加新的记录
……代码我就不写了~
end if