previousXML_sql2xml::XML_sql2xml (Previous) (Next) XML_sql2xml::addXmlFilenext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

XML_sql2xml::add

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

Synopsis

require_once "XML/sql2xml.php";

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

Description

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.

Parameter

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

  • mixed $params - parameters for the following functions

Note

This function can not be called statically.

Example

Using add()

<?php
$sql2xml
->Add("select * from bands");
?>
previousXML_sql2xml::XML_sql2xml (Previous) (Next) XML_sql2xml::addXmlFilenext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.