The MySQLResultSet Class

Not surprisingly, the MySQLResultSet class (shown in Listing 9-1) has more data members and methods than the MySQLConnect class. However, in many ways, it's a much simpler class and requires much less explanation. To get an overview of this class, find all its data members and methods listed here:

Listing 9-1. The MySQLResultSet class
 //data members private $strSQL private $databasename private $connection private $result // public methods public function __construct($strSQL, $databasename, $connection) public function __destruct() //return current record public function getRow() //accessor method for returning database name public function getDatabaseName() public function getNumberColumns() public function getNumberRows() ...

Get Object-Oriented PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.