Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.7

Bug #8125 report Notice if DBTable not use DB package
Submitted: 2006-07-06 02:20 UTC
From: kenchou77 at gmail dot com Assigned: wiesemann
Status: Closed Package: Structures_DataGrid_DataSource_DBTable (version 0.1.0)
PHP Version: 5.1.4 OS:
Roadmaps: (Not assigned)    

 [2006-07-06 02:20 UTC] kenchou77 at gmail dot com (Ken)
Description: ------------ if use other DB (like MDB2), script got "Notice: Use of undefined constant DB_FETCHMODE_ASSOC" Test script: --------------- $db =& MDB2::factory($DSN); if (PEAR::isError($db)) { exit($db->getMessage()); } $db->setFetchMode(MDB2_FETCHMODE_ASSOC); $user =& new user($db, DB_TABLE_USER); $datagrid =& new Structures_DataGrid($count); $test = $datagrid->bind($user, array('view' =>'list')); if (PEAR::isError($test)) { echo $test->getMessage(); } $datagrid->render(DATAGRID_RENDER_TABLE); //DBTable.php line 142 //- while ($record = $this->_result->fetchRow(DB_FETCHMODE_ASSOC)) { //+ while ($record = $this->_result->fetchRow()) { Expected result: ---------------- //display data list Actual result: -------------- Notice: Use of undefined constant DB_FETCHMODE_ASSOC - assumed 'DB_FETCHMODE_ASSOC' in d:\PEAR\Structures\DataGrid\DataSource\DBTable.php on line 142


 [2006-07-06 10:43 UTC] wiesemann (Mark Wiesemann)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at