public function connect() { if (self::$connection === null) { self::$connection = mssql_connect(DB_HOST, DB_USER, DB_PWD); mssql_select_db(DB_DATABASE, self::$connection); } return self::$connection; }
/** * Make connection * * @return object value */ public function connect() { if (self::$connection === NULL) { self::$connection = mssql_connect(_dbHost, _dbUser, _dbPwd); mssql_select_db(_dbName, self::$connection); } return self::$connection; }