Re: mysql_fetch_assoc to ADOdb??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2005-09-08, Joshua Kramer <josh@xxxxxxxxxxxxxxxx> 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>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux