mysql_fetch_assoc to ADOdb??

From: Date: Thu, 08 Sep 2005 11:38:41 +0000
Subject: mysql_fetch_assoc to ADOdb??
Groups: php.db 
Request: Send a blank email to php-db+get-40227@lists.php.net to get a copy of this message
Hi all, I'm converting an application from Mysql native code to ADODB. Is there a simple way to get ADOdb's GetAssoc() function to behave exactly like mysel_fetch_assoc, where the array keys are field names instead of the key fields themselves? IE: select name, phone, city FROM people; $array = $DB->GetAssoc("select name, phone, city FROM people"); $array['name'] = "Bob" $array['phone'] = "555-1212" instead of $array['Bob'] = '555-1212'

« previous php.db (#40227) next »