proper pear db query for an awesome ass. array

If you want a descriptive associative array with Pear DB, this is probably what you should use:

$data=& $dbh->getAssoc('select * from table', false, array(), DB_FETCHMODE_ASSOC, false);

Leave Comment