<%
username=session("JaAdmin")
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from [gryp] where username='"&username&"'"
rs1.Open sql1,connfl,1,1
if rs1.eof and rs1.bof then
set rs=server.CreateObject("adodb.recordset")
sql="select * from [gryp]"
rs.Open sql,connfl,1,3
rs.addnew
rs("username")=username
rs.update
rs.close
set rs=nothing
response.write("<script language='javascript'>alert('申请成功');window.location.href='gryp.asp'</script>")
else
response.write("<script language='javascript'>alert('您的简历已添好');window.location.href='gryp.asp'</script>")
end if
%>
有的时候提示
您的简历已添好
新添加的时候在
rs.update报错