config.asp

来自「一个简单ASP+ACCESS博客程序Simple Blog v1.2 。ASP虽」· ASP 代码 · 共 35 行

ASP
35
字号
<%
' Project Name: Simple Blog
' Version: 1.1
' Author: James Tang
' Email: fwsous@gmail.com
' Web site: www.fwso.cn
' Copyright (C) 2008 James Tang. All Rights Reserved.
'
' Note: This program can be used for any purpose for free. 
'       
%>


<%
Dim blogName, blogDesc, blogBottom, blogURL, blogShows
Dim configRS, configSQL
configSQL = "SELECT TOP 1 * FROM config ORDER BY blog_id DESC"
Set configRS = Server.CreateObject("ADODB.Recordset")
configRS.open configSQL, conn, 1,1

IF configRS.EOF or configRS.BOF then
	Response.Write("The configure information is missing.")
Else
	blogName = configRS("blog_name")
	blogURL =  configRS("blog_url")
	blogBottom = configRS("blog_bottom")
	blogDesc = configRS("blog_desc")
	blogShows = configRS("blog_shows")
End If
configRS.close
Set configRS = nothing
conn.close
Set conn = nothing
%>

⌨️ 快捷键说明

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