public function connect()
    {
        $this->link = mysql_connect($this->addr, $this->user, $this->passwd);
        if ($this->link === false) {
            throw new Klarna_DatabaseException(
                'Failed to connect to database! ('.mysql_error().')'
            );
        }
    }
public function connect()
    {
        $this->link = mysql_connect($this->addr, $this->user, $this->passwd);
        if ($this->link === false) {
            throw new Klarna_DatabaseException(
                'Failed to connect to database! ('.mysql_error().')'
            );
        }
    }
public function connect ( ) { $ this -> link = mysql_connect ( $ this -> addr , $ this -> user , $ this -> passwd ) ; if ( $ this -> link === false ) { throw new Klarna_DatabaseException ( 'Failed to connect to database! (' . mysql_error ( ) . ')' ) ; } }
Establish a connection to the DB

@throws Klarna_DatabaseException If a connection could not be made

@return void
Establish a connection to the DB