Re: Problem with fetching values...
| From: | Michelle Konzack | Date: | Mon, 29 Dec 2008 12:57:57 +0000 |
| Subject: | Re: Problem with fetching values... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285193@lists.php.net to get a copy of this message | ||
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)