<!--#include file="inc/conn.asp"-->
<!--#include file="inc/safe.asp"-->
<%
starn=request("starn")
vid=request("vid")
set rs=server.createobject("adodb.recordset")
sql="select score,people from video_info where id="& vid
rs.open sql,conn,1,3
if not rs.eof then
 rs("score")=rs("score")+ cint(starn)
 rs("people")=rs("people")+1
 rs.update
end if
Response.Cookies(""& vid &"")("score")=starn
Response.Cookies(""& vid &"").Expires=DateAdd("d",1,Date)
rs.close
set rs=nothing
%>