利用ASP生成XML文档!!(源码)
<%
set conn=server.createobject("adodb.connection")
conn.open applicatio("connstring")
set rs=server.createobject("Adodb.recordset")
sql="select * from table order by id desc"
rs.open sql,conn
do while not rs.eof
msg=msg & rs("字段1") & chr(9) & rs("字段2) & vbcrlf
rs.movenext
loop
set f=server.createobject("scripting.filesystem")
set myfile=f.createotextfile(mappath.server(xmllover.xls),true)
%>
已生成xmllover.xls!!!!
set conn=server.createobject("adodb.connection")
conn.open applicatio("connstring")
set rs=server.createobject("Adodb.recordset")
sql="select * from table order by id desc"
rs.open sql,conn
do while not rs.eof
msg=msg & rs("字段1") & chr(9) & rs("字段2) & vbcrlf
rs.movenext
loop
set f=server.createobject("scripting.filesystem")
set myfile=f.createotextfile(mappath.server(xmllover.xls),true)
%>
已生成xmllover.xls!!!!
- 没有相关文章
- 没有评论