PHP OOP - Does this database reading class make sense? After a whole night of work I finally have my first useful class - for reading database.

It works like a charm, but if you got a moment, please take a glance and give me feedback. Harsh criticism welcome.

Please note that security is not addressed yet, as well as usual SQL clauses, but I'd like to know am I on the right way to writing better software. 

Here it is:

class DatabaseRead {
protected $dbh;                 // Database handle connection
public $columns     = array();  // Columns to be read
public $table;                  // Table to be read from
public $resultSet   = array();  // Returned results

public function __construct( $dbh, $columns, $table ) {
    $this-&gt;dbh          = $dbh;
    $this-&gt;columns      = $columns;
    $this-&gt;column       = '';
    $this-&gt;table        = $table;
    $this-&gt;resultSet    = array();

    $read_database = $this-&gt;dbh-&gt;query('SELECT ' . implode(',' , $this-&gt;columns) . ' FROM ' . $this-&gt;table);
    while ($row = $read_database-&gt;fetch()) {            
        foreach($this-&gt;columns as $this-&gt;column) {
            $this-&gt;resultSet[$this-&gt;column] = $row[$this-&gt;column];
        }
    }
    return $this-&gt;resultSet;        
}


}

Have I wrote an actual class that makes sense, or just a glorified function?

Thanks.
Why don't you split the "constructor" part and the "get the values" part?

Code :

class Database {

    protected $dbh;                 // Database handle connection

    public function __construct( $dbh) {
        $this-&gt;dbh          = $dbh;
    }

    public function getResults($columns,$table)
    {
        $resultSet = array();

        $read_database = $this-&gt;dbh-&gt;query('SELECT ' . implode(',' , $columns) . ' FROM ' . $table);
        while ($row = $read_database-&gt;fetch()) {            
            foreach($columns as $column) {
                $resultSet[$column] = $row[$column];
            }
        }
        return $resultSet;
    }
}


Usage :

$db = new Database($dbh);
$db-&gt;getResults($columns, $table);