<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <!--#include virtual="/conn.asp" --> <%Session.CodePage=65001%> response.expires=-1 user = trim(request.querystring("name")) if user = "" then response.write escape("<font style=""color:red"">姓名或学员ID不能为空格!</font>") response.End() end if sql = "select * from students where usrname ='"&user&"' or usr_ID='"&user&"'" 'sql = sql &"'"& request.querystring("name") &"'" '使用sql对conn进行查询,后面的参数代表我要完全操作这个数据库 Set rs = Server.CreateObject( "ADODB.Recordset" ) rs.open sql,conn,1,1