首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

asp读取内容中的一段数据的有关问题

2012-02-26 
asp读取内容中的一段数据的问题数据库字段content的内容是ppppppppppp IMGsrc news/images/20077111214

asp读取内容中的一段数据的问题
数据库字段   content   的内容是
ppppppppppp <IMG   src= "news/images/2007711121419260.gif "> lllllllll

我想只取   images/2007711121419260.gif   咱们写代码

[解决办法]
<%
str = "ppppppppppp <IMG src= " "news/images/2007711121419260.gif " "> llllllllldfgdfgdfg <IMG src= " "news/images/ddddd.gif " "> cvbcvbcvb "

s = instr(str, " < ") +9
e = instr(str, "> ") -2

getstr = left(str,e)
getstr = replace(getstr,left(getstr,s), " ")
response.write getstr
%>

热点排行