Re: I wish I knew more about multi-dimensional arrays
| From: | Verdon vaillancourt | Date: | Sat, 23 Aug 2003 13:00:41 +0000 |
| Subject: | Re: I wish I knew more about multi-dimensional arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160500@lists.php.net to get a copy of this message | ||
Hey bigdog, that's beautiful! I laughed, I cried, so elegant ;)
Thanks, that did the job nicely.
Salut,
verdon
On 8/23/03 2:02 AM, "php-general-digest-help@lists.php.net"
<php-general-digest-help@lists.php.net> wrote:
> From: Ray Hunter <bigdog@venticon.com>
> Reply-To: bigdog@venticon.com
> Date: Fri, 22 Aug 2003 11:03:10 -0600
> To: 'PHP-General' <php-general@lists.php.net>
> Subject: Re: [PHP] I wish I knew more about multi-dimensional arrays
>
> mysql result as a multi-dimensional array:
>
> while( $row = mysql_fetch_array($result) ) {
> $rows[] = $row;
> }
>
> now you have a multi-dimensional array that contains each row in rows...
>
> examples:
> row 1 col 1 - $rows[0][0]
> row 3 col 2 - $rows[3][2]
>
> hth
>
> --
> bigdog
>
>
> On Fri, 2003-08-22 at 10:37, Verdon vaillancourt wrote:
>> Hi, please don't chuckle (too loudly) at my attempts to learn ;)
>>
>> I'm trying to create what I think would be a multi-dimensional array from a
>> mysql result set, to use in some example code I got off this list last week.
>>