ASP 循環(huán)導(dǎo)入導(dǎo)出數(shù)據(jù)處理 不使用緩存
更新時(shí)間:2009年01月13日 23:31:05 作者:
非常不錯(cuò),大家可以自己應(yīng)用下。
<%
'//數(shù)據(jù)處理部分
dim Content,Num,I,strCodea
I=request("I")
If len(I)=0 then I=0
Response.write "<br><div align=center>該程序目前已經(jīng)循環(huán)處理了"&I&"次數(shù)據(jù)</div><br>"
strCodea="UploadFiles/News" '//需要查詢是否包含的字符串
strCodeb="""""/UploadFiles/News" '//被替換的字符串
strCodec="""""http://www.dhdzp.com/uploadfiles/news" '//替換字符串
Set rs = server.CreateObject("adodb.recordset")
rs.open "select content From news where id="&I&" and siteid=1 order by id desc",conn,1,1
If not(rs.eof or rs.bof) then
Content=rs("content")
Num=instr(content,strCodea)
If Num>0 then
If right(left(content,Num),2)="""""/" then
content=replace(content,strCodeb,strCodec)
end if
end if
end if
Rs.close
II=I+1
response.write("<meta http-equiv=""refresh"" content=""0;url=?I="&I""">")
Set rs = Nothing
%>
'//數(shù)據(jù)處理部分
dim Content,Num,I,strCodea
I=request("I")
If len(I)=0 then I=0
Response.write "<br><div align=center>該程序目前已經(jīng)循環(huán)處理了"&I&"次數(shù)據(jù)</div><br>"
strCodea="UploadFiles/News" '//需要查詢是否包含的字符串
strCodeb="""""/UploadFiles/News" '//被替換的字符串
strCodec="""""http://www.dhdzp.com/uploadfiles/news" '//替換字符串
Set rs = server.CreateObject("adodb.recordset")
rs.open "select content From news where id="&I&" and siteid=1 order by id desc",conn,1,1
If not(rs.eof or rs.bof) then
Content=rs("content")
Num=instr(content,strCodea)
If Num>0 then
If right(left(content,Num),2)="""""/" then
content=replace(content,strCodeb,strCodec)
end if
end if
end if
Rs.close
II=I+1
response.write("<meta http-equiv=""refresh"" content=""0;url=?I="&I""">")
Set rs = Nothing
%>
相關(guān)文章
在asp中通過getrows實(shí)現(xiàn)數(shù)據(jù)庫記錄分頁的一段代碼
在asp中通過getrows實(shí)現(xiàn)數(shù)據(jù)庫記錄分頁的一段代碼...2006-11-11
.NET?Core?分布式任務(wù)調(diào)度ScheduleMaster詳解
這篇文章主要介紹了分布式任務(wù)調(diào)度ScheduleMaster,集中任務(wù)調(diào)度系統(tǒng),最簡(jiǎn)單的理解ScheduleMaster,就是對(duì)不同的系統(tǒng)里面的調(diào)度任務(wù)做統(tǒng)一管理的框架,本文通過圖文實(shí)例代碼相結(jié)合給大家介紹的非常詳細(xì),需要的朋友可以參考下2022-05-05

