FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18474&edit=1

ID: 18474
Updated by: daniel.oconnor@gmail.com
Reported By: aswatts at gmail dot com
Summary: MDB2_FETCHMODE_ASSOC does not work with mssql driver
-Status: Open
+Status: Duplicate
Type: Bug
Package: MDB2
Operating System: Linux
Package Version: 2.5.0b3
PHP Version: 5.3.1
Roadmap Versions:
New Comment:

-Status: Open
+Status: Duplicate
Bug #18473


Previous Comments:
------------------------------------------------------------------------

[2011-04-21 22:34:26] a21wat

Description:
------------
When setting the fetchmode:

while ($tarr = $tresult->fetchRow(MDB2_FETCHMODE_ASSOC)){
echo $tarr[test_var];
}

php generates error: PHP Notice: Undefined index: test_var in .....

tried to set fetchmode after connection using:
$db3->setFetchMode(MDB2_FETCHMODE_ASSOC) to no avail.

Only MDB2_FETCHMODE_DEFAULT works

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedApr 22, '11 at 12:43a
activeApr 22, '11 at 12:43a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase