Re: Re: Help with SQL2XML
| From: | Ken Harris | Date: | Tue, 02 Apr 2002 12:38:06 +0000 |
| Subject: | Re: Re: Help with SQL2XML | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1077@lists.php.net to get a copy of this message | ||
Quoting Bertrand Mansion <bmansion@mamasam.com>:
>
> >> I have tried both the direct and indirect methods:
> >> $myclass = new xml_sql2xml
> >> ( "pgsql://username:password@host5432/databasename" );
> >> $xmlstring = $myclass->getxml( $sql );
> >> AND
> >> $db = DB::connect ( "pgsql://username:password@host5432/databasename"
> );
> >> $result = $dbh->query ( "SELECT * FROM users" );
> ^^^^ is it supposed to be $db instead ?
^^^^ NO, this was just a TYPO, it is correct in the actual code.
>
> >> $myclass = new xml_sql2xml ( $db );
> >> $xmlstring = $myclass->getxml( $result );
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Ken Harris
Senior Analyst
Lighthouse Information Systems, Inc
(410) 239-9591