[thelist] [PHP] Converting a mulitdimentional array to a valid XML doc (for a flash file to read from)...
ben morrison
morrison.ben at gmail.com
Fri May 9 05:13:10 CDT 2008
On Fri, May 9, 2008 at 11:06 AM, Tris <beertastic at gmail.com> wrote:
> Hi all...
> I've an array that's generated from a couple of MySQL queries:
> http://www.net-tastic.com/brand/xml.php
>
> Firstly (~Rudy ;-p ) is there a way to get all this data in an array, from a
> single MySQL query?
>
> Secondly, how can I 'simply' convert the array at the bottom of the page,
> into an XML document...
> There's a flash file that's gonna use the data from this doc, to display
> it's content..
Its been a while since i've used flash and I used to hate parsing xml,
could you use JSON instead?
http://uk3.php.net/json
and a little googling:
http://winklite.wordpress.com/2007/12/18/flash-cs3-actionscript-30-json-keep-it-simple-tutorial/
ben
--
Ben Morrison
More information about the thelist
mailing list