example2.php
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
'
http://www.bkjia.com/phpjc/314315.htmlwww.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...