Re: Using two colomns of mysql data as key/value pairs in arrays

From: Date: Mon, 20 Oct 2003 14:57:54 +0000
Subject: Re: Using two colomns of mysql data as key/value pairs in arrays
References: 1 2 3 4 5  Groups: php.db 
Request: Send a blank email to php-db+get-31175@lists.php.net to get a copy of this message
Jon -- ..and then Jon Kriek said... % % Easier is not always "right" or "good script-logic" Admitted. I just want to know why it's wrong or so-very-not-good. % % Would it be easier for you to type: % % mysql_fetch_array($result, MYSQL_ASSOC) { If I needed to care about the space used by a single record I would probably do that; it leaves me with only one function to have to remember and if I have a real need to tune it down to one or the other then I can specify the array index format. % % >> It's easier for me to just always use mysql_fetch_array instead of % figuring out whether I want mysql_fetch_row, mysql_fetch_assoc, or both. % "David T-G" <davidtg-php@justpickone.org> wrote in message % news:20031020135849.GS9710@justpickone.org... Dude, your quoting *really* needs some help... Oh, Outhouse. My condolences. Thanks & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.db (#31175) next »