当前位置:编程学习 > asp >>

这个ASP代码有哪些语法错误

<% connstr="DBQ="+server.mappath("\MpSoft\mpbj\database\mpbj.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};pwd=xhjxjf168;"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr

set rs=server.createobject("ADODB.Recordset")

Tel = Request.form("Tel")

SQL = "SELECT * From Hy Where 电话='" &1& "' "

Set Rs1 = Conn.ExeCute(SQL)

do While Not Rs1.Eof

For i = 0 To Rs1.Fields.Count

Response.Write Rs1(i) & " "

Next

Rs1.MoveNExt


loop


%>

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,