Re: mysql_fetch_assoc to ADOdb??

From: Date: Thu, 08 Sep 2005 22:29:10 +0000
Subject: Re: mysql_fetch_assoc to ADOdb??
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-40228@lists.php.net to get a copy of this message
On 2005-09-08, Joshua Kramer <josh@globalherald.net> wrote: > > 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: What's wrong with: $db->setFetchMode(ADODB_FETCH_ASSOC); $rs = $db->Execute('...'); $rows = $rs->getRows(); -- Met vriendelijke groeten, Tim Van Wassenhove <http://timvw.madoka.be>

« previous php.db (#40228) next »