Home » XML » XML_sql2xml » Bug #6978
Problem using a ResultSet
Details
| Submitted | 2006-03-01 17:24 UTC |
|---|---|
| From | u_colmenar at altran-tech dot net |
| Status | Bogus |
| Package | XML_sql2xml |
| PHP Version | 5.1.1 |
| OS | WindowsXP |
| Roadmaps | (Not assigned) |
Comments
[2006-03-01 17:24 UTC] u_colmenar at altran-tech dot net
Description:
------------
I cannot get any result because the next line don't match!!
>> get_class($resultset) == "db_result"
It could be modified to:
get_class($resultset) == "DB_result"
Test script:
---------------
My script:
-----------------
$Db= &DB::connect($Dsn, true);
$ResultSet = $Db->query($Query);
$sql2xml = new xml_sql2xml($Db);
$XmlString = $sql2xml->getxml($ResultSet);
echo $XmlString
-----------------
sql2xml class:
-----------------
function add ($resultset, $params = Null)
{
...
// if array, then it's an array...
elseif (is_array($resultset)) {
$this->AddArray($resultset);
}
if (get_class($resultset) == "db_result") {
$this->AddResult($resultset);
}
}
Actual result:
--------------
Nothing!
[2006-03-01 17:25 UTC] u_colmenar at altran-tech dot net
--