irm-1.6-b3/MDB/Modules/Manager/fbsql.php
/**
     * create a new database
     *
     * @param object    $dbs        database object that is extended by this class
     * @param string $name name of the database that should be created
     * @return mixed MDB_OK on success, a MDB error on failure
     * @access public
     */
create a new database
@param object    $dbs        database object that is extended by this class
@param string $name name of the database that should be created
@return mixed MDB_OK on success, a MDB error on failure
@access public
create a new database @param object $dbs database object that is extended by this class @param string $name name of the database that should be created @return mixed MDB_OK on success a MDB error on failure @access public
function createDatabase(&$db, $name)
    {
        if (MDB::isError($result = $db->connect())) {
            return($result);
        }
        if (!@fbsql_create_db($name, $db->connection)) {
            return($db->fbsqlRaiseError());
        }
        return(MDB_OK);
    }
function createDatabase ( & $ db , $ name ) { if ( MDB :: isError ( $ result = $ db -> connect ( ) ) ) { return ( $ result ) ; } if ( ! @ fbsql_create_db ( $ name , $ db -> connection ) ) { return ( $ db -> fbsqlRaiseError ( ) ) ; } return ( MDB_OK ) ; }
create a new database
 @param object    $dbs        database object that is extended by this class
 @param string $name name of the database that should be created
 @return mixed MDB_OK on success, a MDB error on failure
 @access public
create a new database @param object $dbs database object that is extended by this class @param string $name name of the database that should be created @return mixed MDB_OK on success a MDB error on failure @access public