Topic: Multidimensional array dynamically
Think if I have a table as (id, field1, field2, field3, field4, field5) and I need to create a array with the key choose by the user.
The user1 wants: $valuelist['field1']['field3'] = $value_line;
The user2 wants: $valuelist['field2']['field4']['field5'] = $value_line;
After I will show to user1
field3 = values
And user 2 will get
field5 = values
Any idea how to do it?
I thought about a recursive function....
I also thought making a "ORDER BY fields_choose_by_user" and when it changes the values from any key choose print....