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

Bug #5705 using loadDBResult with DB_FETCHMODE_OBJECT
Submitted: 2005-10-17 12:37 UTC
From: m dot lindeman at pictura-dp dot nl Assigned: avb
Status: Closed Package: HTML_QuickForm
PHP Version: Irrelevant OS: Kubuntu linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 20 + 22 = ?

 
 [2005-10-17 12:37 UTC] m dot lindeman at pictura-dp dot nl
Description: ------------ in method loadDBResult of class HTML_QuickForm_select there is no support for fetchmode DB_FETCHMODE_OBJECT when $textCol=null and $valueCol=null. Test script: --------------- <?php $db = DB::Connect('mysql://user:passwd@host/dbname'); $db->setFetchMode(DB_FETCHMODE_OBJECT); $rs = &$db->Query('SELECT COL1, COL2 FROM table'); $form = new HTML_QuickForm(); $select = &$form->createElement('select'); $select->loadDbResult($rs); $form->display(); ?> Expected result: ---------------- <form ....> <select> <option value="row1__value">row1_text</option> ... </select> </form> Actual result: -------------- <form ....> <select></select> </form>

Comments

 [2005-11-01 11:37 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!
 [2006-06-03 12:03 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!