开发者

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

开发者 https://www.devze.com 2023-03-02 19:54 出处:网络
I 开发者_StackOverflow社区would like to output as XML, the results of a MySQL query. Could you help me please?

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

精彩评论

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