Re: Re: Problem with fetching values...

From: Date: Mon, 29 Dec 2008 13:07:06 +0000
Subject: Re: Re: Problem with fetching values...
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-285195@lists.php.net to get a copy of this message
On Mon, Dec 29, 2008 at 7:57 AM, Michelle Konzack <linux4michelle@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, dGã}t×ä>��øë > Rhttp://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

« previous php.general (#285195) next »