I have the following array structure:
Array
(
[0] => Array
(
[product_option_id] => 236
[option_id] => 14
[name] => Masura S
[type] => select
[option_value] => Array
(
[0] => Array
(
[product_option_value_id] => 33
[option_value_id] => 53
[name] => Alb
[price] =>
[price_prefix] => +
)
[1] => Array
(
[product_option_value_id] => 35
[option_value_id] => 55
[name] => Rosu
[price] =>
[price_prefix] => +
)
)
[required] => 0
)
[1] => Array
(
[product_option_id] => 237
[option_id] => 15
[name] => Masura M
[type] => select
[option_value] => Array
(
[0] => Array
(
[product_option_value_id] => 34
[option_value_id] => 58
[name] => Rosu
[price] =>
[price_prefix] => +
)
)
[required] => 0
)
)
I find myself lost in trying to display all the [name] values from this array.
What I am trying to do is to populate a form with dropdown selects based on the first level [name] (like [name] => Masura S) and then a second dropdown select with the second level [name] (like [name] => Alb).
I would appreciate it if you have any pointers...
unionquery using the similarnamefield between these two tables, with an alias/custom field indicating level based on table source, should get you a better formed array to work with. Have you tried anything like that?