Use PHP to import mysql data to an XML file.

Source: Internet
Author: User
I want to use PHP to import mysql data to an XML file. I want to use PHP to import the data in the table: floor in mysql to a specified test. XML file. I have found some methods on the Internet that do not work well. I hope some of my friends who have done so will give me the source code ., Reference: this is probably the case, but I just don't know how to import Mysql data into an XML file using PHP.
I want to use PHP to import the data in the table: floor in mysql to a specified test. XML file. I have found some ways on the Internet that are not doing well. I hope some friends who have done so will give me the source code.
------ Solution --------------------
Reference:
This is probably the case, but I just don't know how to output the Mysql database in this XML file.

So you always want to query. Should you save the query results to an array?

Of course, the replacement will be completed when the query result is traversed, so it will be better.
The idea has been given to you, so you have to worry about it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.