<%
set rs=server.createobject("adodb.connection")
sql="select * from 学生"
rs.open sql,conn,1,3//这句话哪里出了错误
%>
<%
rs.addnew
rs("学号")=request.form("id")
rs("姓名")=request.form("name")
rs("性别")=request.form("sex")
rs("班级")=request.form("class")
rs("籍贯")=request.form("from")
rs("电话")=request.form("tel")
rs.update
%>
添加成功,浏览
<%
rs.close
set rs=nothing
conn.ckose
set conn=nothing
%>