我正在使用ADODB来获取数据。我得到这样的错误:
Fatal error: Call to a member function SetFetchMode() on a non-object
这是我的代码:
function createAdodbConnection($fetchMode = ADODB_FETCH_ASSOC) {
$self = DbManager::_instance();
$conn = &ADONewConnection($self->getDsn());
$conn->SetFetchMode($fetchMode);
return $conn;
}