Re: mySQL Results To XML -- my xmltag() functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<posted & mailed>

mike wrote:

> I made this at one point:
> 
> function array2xml($array, $complete = true) {
>     $xml = "<$array[NODE] ";
>     unset($array['NODE']);
>     ksort($array);
>     foreach(array_keys($array) as $key) {
>         $xml .= "$key=\"$array[$key]\" ";
>     }
>     if($complete) {
>         $xml .= "/";
>     }
>     $xml .= ">";
>     return $xml;
> }

What about the reverse - converting the XML back to MySQL?
(I'm interested for an address book project,
but don't know too much of XML or mySQL!)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux