<%
rem 检查sql字符串中是否有单引号,有则进行转化
function CheckStr(str)
dim tstr,l,i,ch
l=len(str)
for i=1 to l
ch=mid(str,i,1)
if ch="'" then
tstr=tstr+"'"
end if
tstr=tstr+ch
next
CheckStr=tstr
end function
%>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10294527/viewspace-124684/
,如需转载,请注明出处,否则将追究法律责任。