PEAR Manual
Prev |  | Next

# 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 statment, 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 statment, an DB_result object or an array

- `mixed $params` - parameters for the following functions

## Note

This function can not be called statically.

## See

XML_sql2xml::addResult(), XML_sql2xml::addSql(), XML_sql2xml::addArray(), XML_sql2xml::addXmlFile()

## Example

Example 59-1. Using add()
    $sql2xml->Add("select * from bands");

Prev | Home | Next
XML_sql2xml::XML_sql2xml | Up | XML_sql2xml::addXmlFile