ADODB.Field (0x800A0BCD) BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除, 10
所需的操作要求一个当前的记录。/mynews/shown.asp,第34行<%@LANGUAGE="VBSCRIPT"CODEPAGE="65001"%><!--#inc...
所需的操作要求一个当前的记录。
/mynews/shown.asp, 第 34 行
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/newsconn.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Request.QueryString("n_id") <> "") Then
Recordset1__MMColParam = Request.QueryString("n_id")
End If
%>
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_newsconn_STRING
Recordset1_cmd.CommandText = "SELECT * FROM tnews WHERE n_id = ?"
Recordset1_cmd.Prepared = true
Recordset1_cmd.Parameters.Append Recordset1_cmd.CreateParameter("param1", 5, 1, -1, Recordset1__MMColParam) ' adDouble
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_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=utf-8" />
<title>无标题文档</title>
</head>
<body>
<table align="center" border="1">
<tr>
<td align="left" width="50%">n_title</td>
<td align="left" width="50%"><%=(Recordset1.Fields.Item("n_title").Ture)%></td>
</tr>
<tr>
<td align="left" width="50%">t_name</td>
<td align="left" width="50%"><%=(Recordset1.Fields.Item("t_name").Value)%></td>
</tr>
<tr>
<td align="left" width="50%">n_con</td>
<td align="left" width="50%"><%=(Recordset1.Fields.Item("n_con").Value)%></td>
</tr>
<tr>
<td align="left" width="50%">n_time</td>
第34行 <td align="left" width="50%"><%=(Recordset1.Fields.Item("n_time").Value)%></td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
数据库有内容的
请教个问高手帮忙了 展开
/mynews/shown.asp, 第 34 行
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/newsconn.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Request.QueryString("n_id") <> "") Then
Recordset1__MMColParam = Request.QueryString("n_id")
End If
%>
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_newsconn_STRING
Recordset1_cmd.CommandText = "SELECT * FROM tnews WHERE n_id = ?"
Recordset1_cmd.Prepared = true
Recordset1_cmd.Parameters.Append Recordset1_cmd.CreateParameter("param1", 5, 1, -1, Recordset1__MMColParam) ' adDouble
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_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=utf-8" />
<title>无标题文档</title>
</head>
<body>
<table align="center" border="1">
<tr>
<td align="left" width="50%">n_title</td>
<td align="left" width="50%"><%=(Recordset1.Fields.Item("n_title").Ture)%></td>
</tr>
<tr>
<td align="left" width="50%">t_name</td>
<td align="left" width="50%"><%=(Recordset1.Fields.Item("t_name").Value)%></td>
</tr>
<tr>
<td align="left" width="50%">n_con</td>
<td align="left" width="50%"><%=(Recordset1.Fields.Item("n_con").Value)%></td>
</tr>
<tr>
<td align="left" width="50%">n_time</td>
第34行 <td align="left" width="50%"><%=(Recordset1.Fields.Item("n_time").Value)%></td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
数据库有内容的
请教个问高手帮忙了 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询