ASP 数据库添加代码
<%course=request("course")class1=request("class")address=request("address")inteacher=...
<%
course=request("course")
class1=request("class")
address=request("address")
inteacher=request("inteacher")
examiner=request("examiner")
closeoropen=request("closeoropen")
set conn=server.CreateObject("adodb.connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("tm.mdb")
squ2="insert into testinfo (course,class,address,inteacher,examiner,closeoropen) values('" & course & "','" & class1 & "','" & address & "','" & inteacher & "','" & examiner & "','" & closeoropen & ")"
conn.execute(squ2)
conn.close
%>
这个代码一直不能执行,但是我又看不出问题,希望大家帮我一个忙 展开
course=request("course")
class1=request("class")
address=request("address")
inteacher=request("inteacher")
examiner=request("examiner")
closeoropen=request("closeoropen")
set conn=server.CreateObject("adodb.connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("tm.mdb")
squ2="insert into testinfo (course,class,address,inteacher,examiner,closeoropen) values('" & course & "','" & class1 & "','" & address & "','" & inteacher & "','" & examiner & "','" & closeoropen & ")"
conn.execute(squ2)
conn.close
%>
这个代码一直不能执行,但是我又看不出问题,希望大家帮我一个忙 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询