📄 shown.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#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_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_newsconn_STRING
Recordset1.Source = "SELECT * FROM tnews WHERE n_id = " + Replace(Recordset1__MMColParam, "'", "''") + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
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=gb2312" />
<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").Value)%></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_conn</td>
<td align="left" width="50%"><%=(Recordset1.Fields.Item("n_conn").Value)%></td>
</tr>
<tr>
<td align="left" width="50%">n_time</td>
<td align="left" width="50%"><%=(Recordset1.Fields.Item("n_time").Value)%></td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -