saveexamtrouble.asp

来自「网络考试系统最终备份」· ASP 代码 · 共 42 行

ASP
42
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.inc"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<%
v_PaperID = session("test")
v_userid = request.Cookies("userid")
v_subTime = now()
v_QueID = Request("QueID")
v_stukey = request("stukey")

sql = "select * from trouble_restore where Paper_ID = "&v_PaperID&" and User_ID = "&v_userid&" and Que_ID = "&v_QueID&""
set  rs = server.CreateObject("adodb.recordset")
rs.open sql,conn,3,2
if rs.eof  then
rs.addnew
rs("User_ID") = v_userid
rs("Paper_ID") = v_PaperID
rs("Que_ID") = v_QueID
rs("StuAnswer") = v_stukey
rs("SubmitTime") = now()
rs.update
else
rs("User_ID") = v_userid
rs("Paper_ID") = v_PaperID
rs("Que_ID") = v_QueID
rs("StuAnswer") = v_stukey
rs("SubmitTime") = now()
rs.update
end if
rs.close
set rs = nothing
%>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?