一聚教程网:一个值得你收藏的教程网站

热门教程

一个BBS的源代码(三)

时间:2022-07-02 23:34:23 编辑:袖梨 来源:一聚教程网

'==================================================================================================
Case "Content"
'==================================================================================================
' 显示内容
If Request("Keyword") <> "" Then KeyWord = Request("Keyword") Else KeyWord = ""
%>








<%
Which = Request("Which")
If IsNumeric( Which ) Then
Session("BBS_Which") = Which
' 点击数加一
Con.Execute( "UPDATE bbs SET [点击]=[点击]+1 WHERE [序号]=" & Which )
SQL = "SELECT * FROM bbs WHERE [序号]=" & Which
RecBBS.Open SQL , Con , 1
If Not RecBBS.EOF Then
Title = RecBBS.Fields("题目")
Session("BBS_WhichTitle") = Title
%>

序号E<%= Which %>

作者:<%= Server.HTMLEncode( RecBBS.Fields("作者") ) %>

题目:<%= Server.HTMLEncode( Title ) %>

时间:<%= RecBBS.Fields("时间") %>




<%= Server.HTMLEncode( RecBBS.Fields("内容") ) %>


<%