irm-1.6-b3/MDB/Common.php
/**
     * create a new table
     *
     * @param string $name Name of the database that should be created
     * @param array $fields Associative array that contains the definition of
     *      each field of the new table. The indexes of the array entries are
     *      the names of the fields of the table an the array entry values are
     *      associative arrays like those that are meant to be passed with the
     *      field definitions to get[Type]Declaration() functions.
     *
     *      Example
     *        array(
     *            'id' => array(
     *                'type' => 'integer',
     *                'unsigned' => 1
     *                'notnull' => 1
     *                'default' => 0
     *            ),
     *            'name' => array(
     *                'type' => 'text',
     *                'length' => 12
     *            ),
     *            'password' => array(
     *                'type' => 'text',
     *                'length' => 12
     *            )
     *        );
     * @return mixed MDB_OK on success, a MDB error on failure
     * @access public
     */
create a new table
@param string $name Name of the database that should be created
@param array $fields Associative array that contains the definition of
each field of the new table. The indexes of the array entries are
the names of the fields of the table an the array entry values are
associative arrays like those that are meant to be passed with the
field definitions to get[Type]Declaration() functions.


create a new table @param string $name Name of the database that should be created @param array $fields Associative array that contains the definition of each field of the new table . The indexes of the array entries are the names of the fields of the table an the array entry values are associative arrays like those that are meant to be passed with the field definitions to get [ Type ] Declaration () functions .
function createTable($name, $fields)
    {
        $result = $this->loadManager('Create table');
        if (MDB::isError($result)) {
            return($result);
        }
        return($this->manager->createTable($this, $name, $fields));
    }
function createTable ( $ name , $ fields ) { $ result = $ this -> loadManager ( 'Create table' ) ; if ( MDB :: isError ( $ result ) ) { return ( $ result ) ; } return ( $ this -> manager -> createTable ( $ this , $ name , $ fields ) ) ; }
create a new table
 @param string $name Name of the database that should be created
 @param array $fields Associative array that contains the definition of
      each field of the new table.
create a new table @param string $name Name of the database that should be created @param array $fields Associative array that contains the definition of each field of the new table .