看看我的数据库连接问题
ipfind.asp
内容如下
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>IP地址查询</title>
</head>
<body>
<form name="form1" method="post" action="index.asp">
搜索:<br>
姓名:
<input type="text" name="name">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</form>
</table>
</body>
</html>
index.asp
内容如下
<%
name="%"
if request.form("name")<>"" then
name=request.form("name")
end if
ip="%"
if request.form("ip")<>"" then
ip=request.form("ip")
end if
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("ip.mdb")
exec="select * from ip where name='"&name&"' and ip='"&ip&"'"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>IP地址查询</title>
</head>
<body>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">IP地址查询</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr align="center" >
<td>单位</td>
<td>姓名</td>
<td>IP地址</td>
<td>MAC地址</td>
</tr>
<%do while not rs.eof%>
<tr align="center">
<td><%=rs("unit")%></td>
<td><%=rs("name")%></td>
<td><%=rs("ip")%></td>
<td><%=rs("mac")%></td>
</tr>
<%
rs.movenext
loop
%>
</table>
</body>
</html>
说我第14行错误 为什么/.?//