function factory($type)
	{
		include_once(ADODB_DIR."/drivers/adodb-$type.inc.php");
		$obj = NewADOConnection($type);
		if (!is_object($obj)) $obj = new PEAR_Error('Unknown Database Driver: '.$dsninfo['phptype'],-1);
		return $obj;
	}
function factory($type)
	{
		include_once(ADODB_DIR."/drivers/adodb-$type.inc.php");
		$obj = NewADOConnection($type);
		if (!is_object($obj)) $obj = new PEAR_Error('Unknown Database Driver: '.$dsninfo['phptype'],-1);
		return $obj;
	}
function factory ( $ type ) { include_once ( ADODB_DIR . "/drivers/adodb-$type.inc.php" ) ; $ obj = NewADOConnection ( $ type ) ; if ( ! is_object ( $ obj ) ) $ obj = new PEAR_Error ( 'Unknown Database Driver: ' . $ dsninfo [ 'phptype' ] , - 1 ) ; return $ obj ; }
Create a new DB object for the specified database type

@param $type string database type, for example "mysql"

@return object a newly created DB object, or a DB error code on
error
Create a new DB object for the specified database type