Dreamweaver制作网站错误 ADODB.Field '800a0bcd' BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除
下面是代码<%@LANGUAGE="VBSCRIPT"CODEPAGE="936"%><!--#includefile="Connections/conn.asp"-->...
下面是代码
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<%
Dim t__MMColParam
t__MMColParam = "1"
If (Request.QueryString("ID") <> "") Then
t__MMColParam = Request.QueryString("ID")
End If
%>
<%
Dim t
Dim t_numRows
Set t = Server.CreateObject("ADODB.Recordset")
t.ActiveConnection = MM_conn_STRING
t.Source = "SELECT * FROM timu1 WHERE ID = " + Replace(t__MMColParam, "'", "''") + " ORDER BY ID ASC"
t.CursorType = 0
t.CursorLocation = 2
t.LockType = 1
t.Open()
t_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<form id="form1" name="form1" method="post" action="">
<p><%=(t.Fields.Item("timu").Value)%></p>
<p>
<input type="radio" name="a" value="A" />
<%=(t.Fields.Item("A").Value)%></p>
<p>
<input type="radio" name="a" value="B" />
<%=(t.Fields.Item("B").Value)%></p>
<p>
<input type="radio" name="a" value="C" />
<%=(t.Fields.Item("C").Value)%></p>
</form>
<p> </p>
</body>
</html>
<%
t.Close()
Set t = Nothing
%> 展开
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<%
Dim t__MMColParam
t__MMColParam = "1"
If (Request.QueryString("ID") <> "") Then
t__MMColParam = Request.QueryString("ID")
End If
%>
<%
Dim t
Dim t_numRows
Set t = Server.CreateObject("ADODB.Recordset")
t.ActiveConnection = MM_conn_STRING
t.Source = "SELECT * FROM timu1 WHERE ID = " + Replace(t__MMColParam, "'", "''") + " ORDER BY ID ASC"
t.CursorType = 0
t.CursorLocation = 2
t.LockType = 1
t.Open()
t_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<form id="form1" name="form1" method="post" action="">
<p><%=(t.Fields.Item("timu").Value)%></p>
<p>
<input type="radio" name="a" value="A" />
<%=(t.Fields.Item("A").Value)%></p>
<p>
<input type="radio" name="a" value="B" />
<%=(t.Fields.Item("B").Value)%></p>
<p>
<input type="radio" name="a" value="C" />
<%=(t.Fields.Item("C").Value)%></p>
</form>
<p> </p>
</body>
</html>
<%
t.Close()
Set t = Nothing
%> 展开
2个回答
展开全部
出错的地方可能是:
1、ID号有问题,数据库中找不到对应的信息;
2、t.Fields.Item("XXXX").Value(这个数据字段不存在);
1、ID号有问题,数据库中找不到对应的信息;
2、t.Fields.Item("XXXX").Value(这个数据字段不存在);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
看看数据库中的这个ID号是否存在
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询