ffd.asp

来自「网上新闻调查发布系统」· ASP 代码 · 共 65 行

ASP
65
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="myzb.asp" -->

<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Request.QueryString("id") <> "") Then 
  Recordset1__MMColParam = Request.QueryString("id")
End If
%>

<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_myzb_STRING
Recordset1.Source = "SELECT * FROM jh WHERE id = " + Replace(Recordset1__MMColParam, "'", "''") + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()

Recordset1_numRows = 0
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
  <table align="center" border="1">
  <tr>
   <td align="left" width="50%">id</td>
   <td align="left" width="50%"><%=(Recordset1.Fields.Item("id").Value)%></td>
  </tr>
  <tr>
   <td align="left" width="50%">jhbt</td>
   <td align="left" width="50%"><%=(Recordset1.Fields.Item("jhbt").Value)%></td>
  </tr>
  <tr>
   <td align="left" width="50%">jhurl</td>
   <td align="left" width="50%"><%=(Recordset1.Fields.Item("jhurl").Value)%></td>
  </tr>
  <tr>
   <td align="left" width="50%">time</td>
   <td align="left" width="50%"><%=(Recordset1.Fields.Item("time").Value)%></td>
  </tr>
  <tr>
   <td align="left" width="50%">jhfl</td>
   <td align="left" width="50%"><%=(Recordset1.Fields.Item("jhfl").Value)%></td>
  </tr>
  </table>

</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?