首页  >  文章  >  后端开发  >  example2.php_PHP教程

example2.php_PHP教程

WBOY
WBOY原创
2016-07-21 16:10:02691浏览


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
                    More Talks
                    2000
                    The second one
                

            

            
                2
                Only Stupids
                1997
                New York
                Hip Hop
                
                    3
                    2
                    All your base...
                    1999
                    The Classic
                

            

        

    


'

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/314315.htmlTechArticleexample2.php ?php include_once("XML/sql2xml.php"); $sql2xmlclass = new xml_sql2xml("mysql://username:password@localhost/xmltest"); $xmlstring = $sql2xmlclass-getxml("select * from...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn