错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC 驱动程序不支持所需的属性。
/选课/x denglu2.asp, 第 14 行
<!--#Include file="connection.asp"-->
<html>
<head>
<title> 学生选课系统 </title>
</head>
<body>
<%
Dim id,pass
id=trim(Request.Form("xuehao"))
pass=trim(Request.Form("x_pass"))
set rs=server.createobject("adodb.recordset")
sql="select * from info stud where xuehao='" & id & "' and x_pass='" & pass & "'"
rs.open sql,db,1,1
if rs.eof and rs.bof then
response.write"<SCRIPT language=JavaScript>alert('您输入的用户名和密码不正确。');"
response.write"this.location.href='javascript:history.back();'</SCRIPT>"
rs.close
set rs=nothing
else
session("xuehao")=id
session.timeout=180
rs.close
conn.close()
set rs=nothing
response.redirect "x zhujiemian.asp"
end if
%>
</body>
</html>