magnet-bk.php
/**
	 * db_connect
	 * 
	 * Make a mysql database connection
	 * @author Fernando Daz Sanchez <sirfids@gmail.com>
	 * @param $strTipoUsuario
	 * @return Connection ID or false
	 * */


Make a mysql database connection
@author Fernando Daz Sanchez 
@param $strTipoUsuario
@return Connection ID or false
Make a mysql database connection @author Fernando Daz Sanchez @param $strTipoUsuario @return Connection ID or false
private function db_connect($strServer,$strBase,$intPort,
		$strUser,$strPass)
	{
		$this->m_IDCnx = @mysqli_connect($strServer,
							$strUser,
							$strPass,
							$strBase,
							$intPort);
		if( mysqli_connect_errno() )
		{
			throw new exception(mysqli_connect_error(), 
					    mysqli_connect_errno());
    		}
    	return ( $this->m_IDCnx ) ? $this->m_IDCnx : false;
	}
private function db_connect ( $ strServer , $ strBase , $ intPort , $ strUser , $ strPass ) { $ this -> m_IDCnx = @ mysqli_connect ( $ strServer , $ strUser , $ strPass , $ strBase , $ intPort ) ; if ( mysqli_connect_errno ( ) ) { throw new exception ( mysqli_connect_error ( ) , mysqli_connect_errno ( ) ) ; } return ( $ this -> m_IDCnx ) ? $ this -> m_IDCnx : false ; }
db_connect
db_connect
// If some error happens // Make an exception