QuickBooks/Driver/Sql/Mysqli.php
protected function _connect($host, $port, $user, $pass, $db, $new_link, $client_flags)
	{
		if ($port)
		{
			$this->_conn = new mysqli($host, $user, $pass, $db, $port) or die('host: ' . $host . ', user: ' . $user . ', pass: ' . $pass . ' mysqli_error(): ' . mysqli_connect_error());
		}
		else
		{
			$this->_conn = new mysqli($host, $user, $pass, $db)  or die('host: ' . $host . ', user: ' . $user . ', pass: ' . $pass . ' mysqli_error(): ' . mysqli_connect_error());
		}
		
		return true;
	}
protected function _connect($host, $port, $user, $pass, $db, $new_link, $client_flags)
	{
		if ($port)
		{
			$this->_conn = new mysqli($host, $user, $pass, $db, $port) or die('host: ' . $host . ', user: ' . $user . ', pass: ' . $pass . ' mysqli_error(): ' . mysqli_connect_error());
		}
		else
		{
			$this->_conn = new mysqli($host, $user, $pass, $db)  or die('host: ' . $host . ', user: ' . $user . ', pass: ' . $pass . ' mysqli_error(): ' . mysqli_connect_error());
		}
		
		return true;
	}
Connect to the database

@param string $host				The hostname the database is located at
@param integer $port				The port the database is at
@param string $user				Username for connecting
@param string $pass				Password for connecting
@param string $db				The database name
@param boolean $new_link			TRUE for establishing a new link to the database, FALSE to re-use an existing one
@param integer $client_flags		Database connection flags (see the PHP/MySQL documentation)
@return boolean