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 07: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)    
Subscription  


 [2006-07-06 07: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

Comments

 [2006-07-06 15:43 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!