Hello,
I have achieved retreiving data from the database : 3 tables (map,content,users) in 1 read_data.
I've got an array [read_data][var][index] and for each index, 1 array for each table ([map],[content],[user]).
Seems it's the correct result for CCv6.
But I want to create a new array from this one.
How can I do this please?
Can the modify_data function handle this?
Florence
I have achieved retreiving data from the database : 3 tables (map,content,users) in 1 read_data.
[read_table_map] => Array
(
[log] => Array
(...)
[var] => Array
(
[0] => Array
(
[map] => Array
(
[id] => 1
)
[user] => Array
(
[id] => 968
[name] => Super User
[username] => admin
)
[content] => Array
(
[id] => 4
[asset_id] => 67
[title] => Sortie 1
[alias] => sortie-1
)
)
[1] => Array
(
[map] => Array
(
[id] => 2
)
[user] => Array
(
[id] => 968
[name] => Super User
[username] => admin
)
[content] => Array
(
[id] => 5
[asset_id] => 68
[title] => Sortie 2
[alias] => sortie-2
)
)
[2] => Array
(
[map] => Array
(
[id] => 6
)
[user] => Array
(
[id] => 968
[name] => Super User
[username] => admin
)
[content] => Array
(
[id] => 6
[asset_id] => 72
[title] => Sortie 3
[alias] => sortie-3
)
)
I've got an array [read_data][var][index] and for each index, 1 array for each table ([map],[content],[user]).
Seems it's the correct result for CCv6.
But I want to create a new array from this one.
[new_array] => Array
(
[0] => Array
(
[id] => 1
[title] => Sortie 1
[user_id] => 968
)
[1] => Array
(
[id] => 2
[title] => Sortie 2
[user_id] => 968
)
[2] => Array
(
[id] => 6
[title] => Sortie 3
[user_id] => 968
)
)
How can I do this please?
Can the modify_data function handle this?
Florence