Thanks all

I knew it was something simple, but my brain was in twists. (no change there
ha ! ha !)

-----Original Message-----
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 13:24
To: Php-General
Subject: RE: [PHP] array within an array


$array[0][1] is how you access multi-dimensional arrays.


Niklas

-----Original Message-----
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 15. maaliskuuta 2002 15:18
To: [EMAIL PROTECTED]
Subject: [PHP] array within an array


I have an sql query which calls * rows from a table.

Each row is an array of table field values.

This is how I understand the heirachy

$table_row_array[0] = $field_row_array[]
$table_row_array[1] = $field_row_array[]
$table_row_array[2] = $field_row_array[]

Now $table_row_array is being drawn from the database via a while loop
and an $a++, thus I do not have a name for $field_row_array-

I just know that the value of each in $table_row_array is an array.

How can I access the values within $filed_row_array[]?

I want to do something like

$table_row_array[0 [1]]; (the second value from the array that is the
first of $table_row_array)

I know this isnt the syntax

Thanks in advance





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


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


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

Reply via email to