array within an array
| From: | Caspar Kennerdale | Date: | Fri, 15 Mar 2002 13:17:46 +0000 |
| Subject: | array within an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88646@lists.php.net to get a copy of this message | ||
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