开发者

How to print a MySQL query results as XML in PHP?

I 开发者_StackOverflow社区would like to output as XML, the results of a MySQL query.

Could you help me please?


  • For MySQL => PHP : use raw PHP functions like mysql_query(), mysql_fetch_assoc() etc., or PDO, or an ORM...
  • For PHP array => XML, here is an example: How to convert array to SimpleXML. And another good one: http://snipt.net/robertbanh/php-array-to-xml/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜