Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

WebReference.com:
XML and PHP Simplified - XML,PHP and the Database
Jul 23, 2009 @ 12:29:43

WebReference.com continues their simplified look at working with XML in PHP with this new tutorial about working with XML, databases and dynamic generation.

In the previous article, we looked at how to use XML with PHP and saw that it was not very different from writing normal PHP procedures to interact with an XML document. Because PHP treats an XML document like a normal file, it is easy to interact with it, even though its structure is complicated. For example to create a XML document, we use the common functions that PHP uses to create files.

Their examples show how to create a table in a MySQL database, insert some data and pull it back out to push into a dynamically created XML file. Explanation for all of the code is included.

tagged: introduction tutorial database xml

Link: