On Mon, Dec 29, 2008 at 7:57 AM, Michelle Konzack
<linux4miche...@tamay-dogan.net> wrote:
> Am 2008-12-29 22:09:16, schrieb chris smith:
>> > So, PostgreSQL catch the array by "name"
>> >
>> >    pg_fetch_array($db_query, null, PGSQL_ASSOC)
>> >
>> > and MySQL use the "position"
>> >
>> >    mysql_fetch_array($db_query, MYSQL_NUM)
>>
>> Why?
>>
>> http://www.php.net/mysql_fetch_array
>>
>> Use MYSQL_ASSOC as the 2nd param, or leave it out and by default it
>> uses BOTH.
>
> Argh!!! Asshole !!! (me)  --  I have not seen the tree in the wood!
>
> Thanks, Greetings and nice Day/Evening
>    Michelle Konzack
>    Systemadministrator
>    24V Electronic Engineer
>    Tamay Dogan Network
>    Debian GNU/Linux Consultant
>
>
> --
> Linux-User #280138 with the Linux Counter, http://counter.li.org/
> ##################### Debian GNU/Linux Consultant #####################
> <http://www.tamay-dogan.net/>               <http://www.can4linux.org/>
> Michelle Konzack   Apt. 917                  ICQ #328449886
> +49/177/9351947    50, rue de Soultz         MSN LinuxMichi
> +33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)
>

FWIW you can also use mysql_fetch_assoc

http://us2.php.net/mysql_fetch_assoc

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

Reply via email to