% If request.cookies("timesshop")("username")="" Then Response.Write "" end if%> <% if request("action")="getcoupon" then set rs=server.CreateObject("adodb.recordset") rs.open "select * from coupon where owner='"&request.cookies("timesshop")("username")&"' and code='06120502' order by id desc",conn,1,3 if rs.recordcount<5 then rs.addnew rs("code")="06120502" rs("owner")=request.cookies("timesshop")("username") rs("kind")=4 rs("content")=9 rs("gettime")=now() rs("getfrom")="cars51" rs("state")=0 'rs("deadline")="" 'response.write "到这里正常 " 'response.end rs.update response.write " " else response.write " " end if rs.close set rs=nothing end if %>
|