我有这个代码的问题我没有错误,但结果是一个空白的白色输出,请帮助为什么会发生这种情况,几天前代码工作正常,但有一天它会导致空白输出。我将此代码托管在支持较旧的 asp 2.0 和 ms access 2003 具有 .mdb 扩展文件的服务器上
<html>
<body>
<div id ="pin">
<%
city= Request.Form("username")
area = Request.Form("password")
Dim Conn,rs,strSQL
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open"Provider= Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/pinner/db/database1.mdb")
'Conn.Open"DRIVER=Microsoft Access Driver(*.mdb);DBQ=" & Server.MapPath("/pinner/db/Database1.mdb")
'strSQL = "SELECT pincodes.officename FROM pincodes where pincode = '" & city & "';"
Set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "Select pincode from pincodes WHERE Districtname = '" city "' AND officename = '" area "';"
'strSQL = "Select pincode from pincodes WHERE (Districtname like "&city& *" AND officename like "&area&*");"
rs.Open strSQL,Conn
If (rs.EOF And rs.BOF) Then
Response.Write ("<br>")
Response.Write ("[pincode] not found")
Response.Write ("<br>")
Else
Response.Write ("<br>")
Response.Write (rs("pincode"))
Response.Write ("<br>")
End If
rs.close
Set rs = Nothing
Set Conn = Nothing
%>
</div>
</body>
</html>