XML_sql2xml::add – General method for adding new result sets


require_once "XML/sql2xml.php";

void XML_sql2xml::add ( string $resultset , mixed $params = null )


General method for adding new result sets to the object. Give a SQL statement, a PEAR::DB_result object or an array as input parameter and the method calls the appropriate method for this input.


  • string $resultset - SQL statement, an DB_result object or an array

  • mixed $params - parameters for the following functions


This function can not be called statically.


Using add()

->Add("select * from bands");
Constructor (Previous) Adds a XML file (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.