asp缺少标识符
连接数据库时说缺少标识符下面是我的代码<%dimname,name=request.form("t1")setcon=server.createobject("adodb...
连接数据库时说缺少标识符下面 是我的代码
<% dim name,
name=request.form("t1")
set con=server.createobject("adodb.connection")
con.connectionstring="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("stu.mdb")
con.open
strsql=" select grade from biao1
where sname=' " & name & " ' "
set rs=con.execute(strsql)
response.write rs(0)
%> 展开
<% dim name,
name=request.form("t1")
set con=server.createobject("adodb.connection")
con.connectionstring="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("stu.mdb")
con.open
strsql=" select grade from biao1
where sname=' " & name & " ' "
set rs=con.execute(strsql)
response.write rs(0)
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询