Damn PHP

Not for n00bs
How on Earth do you return the column definitions of a table as the names for the start- and endtags ?

On Adobe.com® there is a tutorial for Adobe Flex® where the result of a query to a MySQL® database is returned via PHP as XML. The column names retrieved in this query are looped through and put in the start- and endtags in the XML-document.
Of course, MySQL® isn’t “good” enough >;-) and this is altered to query an Oracle® database….

click for source code.
click for xml result.