|
本帖最后由 ttasp 于 2015-1-29 15:49 编辑
asp从数据库读出的路径含有upfile/0001.pdf[/UPLOAD],我只要upfile/0001.pdf,怎么去掉呢? ...
小菜鸟 发表于 2015-1-29 15:26
- <select name="selectsd">
- <%
- set rs=conn.execute("select * from news where BigClassName='"& guidepost &"' order by ID desc")
- if rs.recordcount=0 then
- %>
- <option selected value="">无记录</option>
- <%else%>
- <option selected value="">请选择</option>
- <%
- do while not rs.eof
- ct=rs("content")
- ct=replace(ct,"[UPLOAD]","")
- ct=replace(ct,"[/UPLOAD]","")
- %>
- %>
- <option value="<%=ct%>"><%=rs("title")%></option>
- <%
- rs.movenext
- loop
- end if
- %>
- </select>
- 期刊
- <script type="text/javascript">
- function Down(path){
- location.reload(path);
- }
- </script>
复制代码
不知道是不是这意思 |
|