example2.php_PHP教程
程序员文章站
2022-06-14 21:18:29
...
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
|
|
'
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 = '
'
推荐阅读
-
C#入门教程之集合ArrayList用法详解
-
Zend Framework教程之Autoloading用法详解
-
mysql 教程 存储过程
-
Zend Framework教程之Zend_Controller_Plugin插件用法详解
-
Zend Framework教程之路由功能Zend_Controller_Router详解
-
Zend Framework教程之响应对象的封装Zend_Controller_Response实例详解
-
Zend Framework教程之Resource Autoloading用法实例
-
Zend Framework教程之Application和Bootstrap用法详解
-
Zend Framework教程之MVC框架的Controller用法分析
-
CDR怎么画图形?cdr画不规则图形的详细教程