一聚教程网:一个值得你收藏的教程网站

热门教程

example2.php

时间:2022-07-02 10:13:32 编辑:袖梨 来源:一聚教程网

example2.php
include_once("XML/sql2xml.php");
$sql2xmlclass = new xml_sql2xml("mysql://username:password@localhost/xmltest");
$xmlstring = $sql2xmlclass->getxml("select * from bands left join albums on bands.id = bandsID");
?>

输出结果
$xmlstring = '

    
        
       
           1
           The Blabbers
           1998
           London
           Rock'n'Roll
           
          1
          1
          BlaBla
          1998
          Their first one
           

           
          2
          1

热门栏目