<!--#include file=CONN.ASP-->
<!--#include file=usercookies.asp-->
<%
dim rs,sql,id,i,str2,username,tupian,objFSO,fileExt,sql1,rs1,sql2
username=request.cookies("fox")("username")
id=trim(request("id"))
if trim(id)="" then
response.write "<script language=JavaScript>" & chr(13) & "alert('没有选择记录！');" & "history.back()" & "</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select yz from [FOX_basket] where toname='"&username&"' and id="&id&""
rs.open sql,conn,1,3
rs("yz")=4
rs.update
rs.close
set rs=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('修改成功！');" &"window.location='mydanma.asp'" & "</script>"
response.end
closedb
%>
</body></html>