example2.php
?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 = '
?xml version="1.0"?
root
result
row
id1/id
nameThe Blabbers/name
birth_year1998/birth_year
birth_placeLondon/birth_p...[ 查看全文 ]