Home » Database » MDB2_Driver_mysqli » Bug #8483
mysqli does not implement getAssoc
Details
| Submitted | 2006-08-16 13:14 UTC |
|---|---|
| From | pear dot php dot net at zetafleet dot com |
| Status | Bogus |
| Package | MDB2_Driver_mysqli |
| PHP Version | 5.1.2 |
| OS | Linux 2.6.15-26 |
| Roadmaps | (Not assigned) |
Comments
[2006-08-16 13:14 UTC] pear dot php dot net at zetafleet dot com
Description:
------------
Error #256: Call to undefined function: MDB2_Driver_mysqli::getAssoc().
Backtrace
index.php:6 - include(join.php)
join.php:28 - assign_contact_types()
join.php:42 - getAssoc(SELECT contact_type_id, title FROM contact_types ORDER BY contact_type_id ASC)
- __call(getAssocArray
(
[0] => SELECT contact_type_id, title FROM contact_types ORDER BY contact_type_id ASC
)
)
MDB2.php:1886 - SMOKING GUN
Test script:
---------------
$result = $db->getAssoc('SELECT id, title FROM news ORDER BY id ASC');
Expected result:
----------------
$result = array('1' => 'Some title', '2' => 'Some other title');
Actual result:
--------------
Error #256: Call to undefined function: MDB2_Driver_mysqli::getAssoc().
[2006-08-16 13:32 UTC] pear dot php dot net at zetafleet dot com
Man you're quick. I just realised I was doing something wrong and was coming to change it. Sorry for the bogus report.