<!--#include file="../Conn.asp"--> <% set rs=server.createobject("adodb.recordset") sql="select * from article where bigtypes='我愛你'order by id desc" 找出數(shù)據(jù)庫內(nèi)類別為我愛你的所有數(shù)據(jù) rs.open sql,conn,1,3 if not rs.eof then do while not rs.eof fname = rs("id")&".html" folder = "../html/Info/" c_filepath = folder&fname
rs("filepath")=c_filepath rs.update
rs.movenext loop end if response.redirect "成功....." %> 解決方法:
復(fù)制代碼 代碼如下:
<% set rs=server.createobject("adodb.recordset") sql="select * from article where bigtypes='我愛你'order by id desc" 找出數(shù)據(jù)庫內(nèi)類別為我愛你的所有數(shù)據(jù) rs.open sql,conn,1,3 if not rs.eof then do while not rs.eof fname = rs("id")&".html" folder = "../html/Info/" c_filepath = folder&fname
conn.execute("update article set filepath='"&c_filepath&"' where id="&rs("id"))
rs.movenext loop end if response.redirect "成功....." %>