irm/lib/MDB.php
/**
     * Create a new DB connection object for the specified database
     * type
     * IMPORTANT: In order for MDB to work properly it is necessary that
     * you make sure that you work with a reference of the original
     * object instead of a copy (this is a PHP4 quirk).
     *
     * For example:
     *     $mdb =& MDB::factory($dsn);
     *          ^^
     * And not:
     *     $mdb = MDB::factory($dsn);
     *          ^^
     *
     * @param   string  $type   database type, for example 'mysql'
     * @return  mixed   a newly created MDB connection object, or a MDB
     *                  error object on error
     * @access  public
     */
Create a new DB connection object for the specified database
type
IMPORTANT: In order for MDB to work properly it is necessary that
you make sure that you work with a reference of the original
object instead of a copy (this is a PHP4 quirk).



@param   string  $type   database type, for example 'mysql'
@return  mixed   a newly created MDB connection object, or a MDB
error object on error
@access  public
Create a new DB connection object for the specified database type IMPORTANT : In order for MDB to work properly it is necessary that you make sure that you work with a reference of the original object instead of a copy ( this is a PHP4 quirk ) . @param string $type database type for example ' mysql ' @return mixed a newly created MDB connection object or a MDB error object on error @access public
function factory($type)
    {
        $class_name = "MDB_$type";
        @include_once("MDB/${type}.php");
        @$db = new $class_name;
        return($db);
    }
function factory ( $ type ) { $ class_name = " MDB_ $ type " ; @ include_once ( " MDB/ $ { type } .php " ) ; @ $ db = new $ class_name ; return ( $ db ) ; }
Create a new DB connection object for the specified database
 type
 IMPORTANT: In order for MDB to work properly it is necessary that
 you make sure that you work with a reference of the original
 object instead of a copy (this is a PHP4 quirk).
Create a new DB connection object for the specified database type IMPORTANT : In order for MDB to work properly it is necessary that you make sure that you work with a reference of the original object instead of a copy ( this is a PHP4 quirk ) .