XML_sql2xml doesn't return anything

From: Date: Thu, 17 Apr 2003 15:20:08 +0000
Subject: XML_sql2xml doesn't return anything
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4919@lists.php.net to get a copy of this message
Greetings. I've set up the example as in the tutorial from http://php.chregu.tv/sql2xml/ only with PostgreSQL as in <?php include_once("DB.php"); include_once("XML/sql2xml.php"); $sql2xml = new xml_sql2xml("pgsql://localhost/xmltest"); $sql2xml->Add("select * from bands"); $xmlstring = $sql2xml->getXML(); ?> and all I get is: <?xml version="1.0"?> <root><result></result></root> which looks like XML alright, but does not contain the data from the SQL query. I know that the data are there because if I do <?php include_once("DB.php"); $db = DB::connect("pgsql://localhost/xmltest"); $result = $db->query("select * from bands"); while ($row = $result->fetchRow()) { echo $row[1] . '<br>'; } ?> instead of the above, I do get the proper query results. Any ideas? Regards, Frank

« previous php.pear.general (#4919) next »