⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 detail.asp

📁 网易论坛 发表新贴子
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="opendb.asp"-->
<!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>
<%
id=request.QueryString("index")
strsql="select*from forum where id="& id
rst.cursortype=3
rst.open strsql
if rst.recordcount>0 then
%>
<tr class="header">
<td align="left" width="46%">标题:<%=rst("title")%>
作者:<%=rst("Username")%>
发贴时间:<%=rst("createtime")%>
</td>
</tr>
<tr>
<td colspan="3" bgcolor="#3300FF">内容:<%=replace(rst("content"),chr(13),"<br>"%></td>
</tr>
<%
count=rst("hitcount")+1
strsql="update forum set hitcount="& count&"where id="&Id
my_conn.execute strsql
%>
<%end if%>
<%
rst.close
strsql="select*from forum where answerid="&Id
rst.cursortype=3
rst.open strsql
if rst.recordcount>0 then
for i=1 to rst.recordcount
%>
<tr>
<td align="left" width="46%" bgcolor="#3300FF">
回复标题:<%=rst("title")%> &nbsp;&nbsp;
回复者:<%=rst("Username")%> &nbsp;&nbsp;
<%
rst.movenext
next
%>
</td>
</tr>
<%end if%>
<!--#include file="closedb.asp"-->

</body>
</html>

⌨️ 快捷键说明

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