?? shown.asp
字號(hào):
<%@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>無(wú)標(biāo)題文檔</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
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -