example1.php

example2.php ?phpinclude_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″?rootresultrowid1/idnameThe
Blabbers/namebirth_year1998/birth_yearbirth_澳门新葡亰手机版,placeLondon/birth_placegenreRock’n’Roll/genrerowid1/idbandsID1/bandsIDtitleBlaBla/titleyear1998/yearcommentTheir
first one/comment/rowrowid2/idbandsID1/bandsIDtitleMore
Talks/titleyear2000/yearcommentThe second
one/comment/row/rowrowid2/idnameOnly
Stupids/namebirth_year1997/birth_yearbirth_placeNew
York/birth_placegenreHip Hop/genrerowid3/idbandsID2/bandsIDtitleAll
your base…/titleyear1999/yearcommentThe
Classic/comment/row/row/result/root’

example1.php ?phpinclude_once(“XML/sql2xml.php”);$sql2xmlclass = new
xml_sql2xml(“mysql://username:password@localhost/xmltest”);$xmlstring =
$sql2xmlclass-getxml(“select * from bands”);?