📄 conn.asp
字号:
<%
Dim conn,connstr
Dim DBPath
Set conn = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("Connections/#data.pcook")
' conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBPath
''====================================''
''说明 字符替换
''返回值 被替换后的字符串
''====================================''
Function htmlEncode2(str)
If IsEmpty(str) Or str = "" Then
htmlEncode2 = " "
Else
str = Replace(str,">",">")
str = Replace(str,"<","<")
str = Replace(str,"'",""")
str = Replace(str,Chr(13),"<br>")
str = Replace(str,VBCrlf,"<br>")
str = Replace(str," "," ")
htmlEncode2 = str
End If
End Function
''====================================''
''说明 字符替换
''返回值 还原字符串
''====================================''
Function htmlEncode3(str)
str = Replace(str,""","'")
str = Replace(str,"<br>",Chr(13))
str = Replace(str," "," ")
str = Replace(str,">",">")
str = Replace(str,"<","<")
htmlEncode3 = str
End Function
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -