<rt id="tf2wb"><bdo id="tf2wb"><kbd id="tf2wb"></kbd></bdo></rt>
    1. <button id="tf2wb"><thead id="tf2wb"></thead></button>

      <rp id="tf2wb"><bdo id="tf2wb"></bdo></rp>
      <delect id="tf2wb"><td id="tf2wb"></td></delect>
      <rt id="tf2wb"></rt>
      <rt id="tf2wb"><bdo id="tf2wb"></bdo></rt>
    2. 企業(yè)與個(gè)人網(wǎng)絡(luò )營(yíng)銷(xiāo)一站式服務(wù)商
      網(wǎng)站建設 / SEO優(yōu)化排名 / 小程序開(kāi)發(fā) / OA
      0731-88571521
      136-3748-2004
      ASP生成XML動(dòng)態(tài)數據讀取代碼實(shí)例
      信息來(lái)源:長(cháng)沙做網(wǎng)站   發(fā)布時(shí)間:2014-2-12   瀏覽:

      網(wǎng)站建設ASP生成XML動(dòng)態(tài)數據讀取代碼實(shí)例

      <!--#include file="M_conn.asp"-->
      <%
      username=request("username")
      set rshot=server.CreateObject("adodb.recordset")
      sql="select * from TZ_all where username='"&username&"' order by id desc"
      rshot.open sql,conn,1,1
      if not (rshot.eof and rshot.bof) then
      i=0
      do while not rshot.eof
      line=line&"  <value xid="""&i&""">"&rshot("rl_time")&"</value>"&vbcrlf&""
      line2=line2&"   <value xid="""&i&""">"&rshot("rl")&"</value>"&vbcrlf&""
      i=i+1
      rshot.movenext
      loop
      end if
      rshot.close
      set rshot=nothing

      xmlfile=server.mappath("/party/amline/value_indicator/amline_rl_"&username&".xml")
      Set fso = CreateObject("Scripting.FileSystemObject")
      Set MyFile = fso.CreateTextFile(xmlfile,True)
      MyFile.WriteLine("<?xml version=""1.0"" encoding=""UTF-8""?>")
      MyFile.WriteLine("<chart>")
      MyFile.WriteLine(" <series>")
      MyFile.WriteLine line
      MyFile.WriteLine(" </series>")
      MyFile.WriteLine(" <graphs>")
      MyFile.WriteLine("  <graph gid=""1"">")
      MyFile.WriteLine line2
      MyFile.WriteLine("  </graph>")
      MyFile.WriteLine(" </graphs>")
      MyFile.WriteLine("</chart>")
      MyFile.Close
      response.Redirect("m_my_bar.asp?username="&username&"")
      %>

       

      <%
      xmlfile=server.mappath("test1.xml")
      Set fso = CreateObject("Scripting.FileSystemObject")
      Set MyFile = fso.CreateTextFile(xmlfile,True)
      MyFile.WriteLine("<?xml version=""1.0"" encoding=""UTF-8""?>")
      MyFile.WriteLine("<chart>")

      MyFile.WriteLine(" <series>")
      MyFile.WriteLine("  <value xid=""0"">1997</value>")
      MyFile.WriteLine("  <value xid=""1"">1997</value>")
      MyFile.WriteLine(" </series>")

      MyFile.WriteLine(" <graphs>")
      MyFile.WriteLine("  <graph gid=""1"">")
      MyFile.WriteLine("   <value xid=""0"">50</value>")
      MyFile.WriteLine("   <value xid=""1"">50</value>")
      MyFile.WriteLine("  </graph>")
      MyFile.WriteLine(" </graphs>")

      MyFile.WriteLine("</chart>")
      MyFile.Close
      %>
      <a href="test1.xml">長(cháng)沙斌網(wǎng)網(wǎng)絡(luò )請您 查看XML文件內容</a>




      上一條: asp做網(wǎng)站中如何循環(huán)輸出26個(gè)英文字母
      下一條: 長(cháng)沙做網(wǎng)站想要超越競爭對手需全面重視網(wǎng)站優(yōu)化
      案例鑒賞
      多年的網(wǎng)站建設經(jīng)驗,斌網(wǎng)網(wǎng)絡(luò )不斷提升技術(shù)設計服務(wù)水平,迎合搜索引擎優(yōu)化規則
      精辟網(wǎng)文
      多年的網(wǎng)站建設經(jīng)驗,網(wǎng)至普不斷提升技術(shù)設計服務(wù)水平,迎合搜索引擎優(yōu)化規則
      長(cháng)沙私人做網(wǎng)站    長(cháng)沙做網(wǎng)站    深圳網(wǎng)站建設    株洲做網(wǎng)站    東莞做網(wǎng)站    南京防腐木    湖南大拇指養豬設備    株洲做網(wǎng)站    
      版權所有 © 長(cháng)沙市天心區斌網(wǎng)網(wǎng)絡(luò )技術(shù)服務(wù)部    湘公網(wǎng)安備 43010302000270號  統一社會(huì )信用代碼:92430103MA4LAMB24R  網(wǎng)站ICP備案號:湘ICP備13006070號-2  
      国产精品久久久久精品|久久网国产精品色婷婷免费|国产另类小说 视频 中文字幕|亚洲欧洲日产国码在线|2020最新国产在线不卡A|无码人妻少妇久久中文字幕蜜|99国产一区二区精品久久

          <rt id="tf2wb"><bdo id="tf2wb"><kbd id="tf2wb"></kbd></bdo></rt>
        1. <button id="tf2wb"><thead id="tf2wb"></thead></button>

          <rp id="tf2wb"><bdo id="tf2wb"></bdo></rp>
          <delect id="tf2wb"><td id="tf2wb"></td></delect>
          <rt id="tf2wb"></rt>
          <rt id="tf2wb"><bdo id="tf2wb"></bdo></rt>