Quixotix/PHP-MySQL-Database-Class — Issue #1: Fatal error: Cannot use object of type stdClass as array
Author: simon1tan
Created: 2011-12-22 17:25:25+00:00
State: open

Possible bug when using MySqlResultSet::DATA_ARRAY per your example. I'm getting error 'Fatal error: Cannot use object of type stdClass as array' accessing the results using $row['foo']. Removing MySqlResultSet::DATA_ARRAY and accessing the results with $row->foo works fine.

eg.:
$row = $db->fetchOneRow("SELECT auth, email FROM table", MySqlResultSet::DATA_ARRAY);
if(isset($_GET['auth']) && $_GET['auth'] == $row['auth']){
}