asp 提取 access 的问题,拜托了
我是菜鸟,问个简单问题。在数据库表js中有个字节是jsurl<%sql="select*fromjsorderbyiddesc"setrs=server.createob...
我是菜鸟,问个简单问题。 在数据库表js中有个字节是jsurl
<%sql="select * from js order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof%>
这里该怎么写?
<%rs.movenext
loop
rs.close
set rs=nothing%>
怎么样才能达到
<SCRIPT src="jsurl1" type=text/javascript></SCRIPT>
<SCRIPT src="jsurl2" type=text/javascript></SCRIPT>
...
<SCRIPT src="jsurln" type=text/javascript></SCRIPT>
这样的效果呢 jsurl1到jsurlN都是从表js中提取的数据jsurl 展开
<%sql="select * from js order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof%>
这里该怎么写?
<%rs.movenext
loop
rs.close
set rs=nothing%>
怎么样才能达到
<SCRIPT src="jsurl1" type=text/javascript></SCRIPT>
<SCRIPT src="jsurl2" type=text/javascript></SCRIPT>
...
<SCRIPT src="jsurln" type=text/javascript></SCRIPT>
这样的效果呢 jsurl1到jsurlN都是从表js中提取的数据jsurl 展开
2个回答
展开全部
<%sql="select * from js order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof%>
<SCRIPT src=<%=rs("jsurl")%> type=text/javascript></SCRIPT>
<%rs.movenext
loop
rs.close
set rs=nothing%>
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof%>
<SCRIPT src=<%=rs("jsurl")%> type=text/javascript></SCRIPT>
<%rs.movenext
loop
rs.close
set rs=nothing%>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询