How to use PHP to access MySQL tables and form XML documents
Source: Internet
Author: User
How do I use PHP to access MySQL tables and form XML documents?
Want to make a dynamic tree directory through Php+mysql+dtree+xml, but do not know how to make table material and import XML document through PHP?
Which Warrior has a good way to achieve? It would be nice to have a better way to implement a directory tree, such as a tree structure like csdn.
------Solution--------------------
The question should not be:
PHP generates XML
------Solution--------------------
Please give the XML format required by Dtree
------Solution--------------------
Nagging, your avatar is a thing, I look at the long time is not see what is!!
------Solution--------------------
Save all the content that needs to be written in the XML file into a string (the "$str. =" "is the best way)
Use the function file_put_contents (' Aaa.xml ', $str).
------Solution--------------------
Explore
Nagging, your avatar is a thing, I look at the long time is not see what is!!
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