PHP: SQL to XML

I posted this on the CyphersTECH blog a little over a year ago, and thought I’d go ahead and post it here, as well. It doesn’t really do anything exceptionally wonderful, just converts the results of an SQL query to usable XML. It was originally written for a FLEX application, so that explains the references to FLEX within the code.