I need to access specific data in one array while looping through another...
I can print_r the array I need to reference; but, somehow I cannot retrieve the data I am looking for...
Example:
the array $data[]
Can't be referenced
to return a value of 1... What am I doing wrong here??
I can print_r the array I need to reference; but, somehow I cannot retrieve the data I am looking for...
Example:
the array $data[]
Code:
Array
(
[0] => Array
(
[salesman] => 818
[0] => DAVID QUINTERO
[salesman_name] => DAVID QUINTERO
[1] => 1
[quan] => 1
)
[1] => Array
(
[salesman] => 909
[0] => RAY WHISMAN
[salesman_name] => RAY WHISMAN
[1] => 1
[quan] => 1
)
[2] => Array
(
[salesman] => 954
[0] => LEO DIAZ
[salesman_name] => LEO DIAZ
[1] => 1
[quan] => 1
).... etc
Can't be referenced
Code:
$data[0][quan]