example2.php

9哥丶

9哥丶

2016-02-19 12:12

想要天天向上,就要懂得享受学习。图老师为大家推荐example2.php,精彩的内容需要你们用心的阅读。还在等什么快点来看看吧!

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_place
                genreRock'n'Roll/genre
                row
                    id1/id
                    bandsID1/bandsID
                    titleBlaBla/title
                    year1998/year
                    commentTheir first one/comment
                /row
                row
                    id2/id
                    bandsID1/bandsID
                    titleMore Talks/title
                    year2000/year
                    commentThe second one/comment
                /row
            /row
            row
                id2/id
                nameOnly Stupids/name
                birth_year1997/birth_year
                birth_placeNew York/birth_place
                genreHip Hop/genre
                row
                    id3/id
                    bandsID2/bandsID
                    titleAll your base.../title
                    year1999/year
                    commentThe Classic/comment
                /row
            /row
        /result
    /root

'
展开更多 50%)
分享

猜你喜欢

example2.php

Web开发
example2.php

example1.php

Web开发
example1.php

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

ftp类(example.php)

Web开发
ftp类(example.php)

Edit Method Example

电脑网络
Edit Method Example

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

AddNew Method Example

电脑网络
AddNew Method Example

PHP入门速成(2)

Web开发
PHP入门速成(2)

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

example1.php

example1.php

PHP:风雨欲来 路在何方?

PHP:风雨欲来 路在何方?
下拉加载更多内容 ↓