国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

ASP 循環(huán)導(dǎo)入導(dǎo)出數(shù)據(jù)處理 不使用緩存

2024-05-04 11:09:00
字體:
供稿:網(wǎng)友
非常不錯,大家可以自己應(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://m.survivalescaperooms.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 
%>
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 巴林左旗| 金塔县| 泸州市| 渝北区| 鄯善县| 盐城市| 昭平县| 都江堰市| 自贡市| 黄平县| 右玉县| 佳木斯市| 原平市| 南木林县| 长寿区| 江永县| 黄陵县| 鄂伦春自治旗| 万荣县| 虞城县| 望都县| 文昌市| 忻城县| 谢通门县| 石河子市| 康保县| 博兴县| 涟源市| 新蔡县| 内黄县| 镇远县| 微博| 梓潼县| 鱼台县| 南宫市| 玉林市| 衡阳市| 休宁县| 固安县| 额济纳旗| 青海省|