Тема: List of Units
Hi All,
I have following problem.
I have got a list of units from API. That is totally fine.
I do store those data in db.
I am also saving information which is stored in the field [pflds] such as brand, year, model, registration plate etc, and all are sent in arrays.
However, not all units have filled in the information and so sometimes there is an array of 5 elements, sometimes 2 elements and I can't save the information easily.
I just wanna say
- array 1 is model, store in column model
- array 2 is brand, store in column brand
- array 3 is registration plate, store in column registration plate
rather then creating some complicated condiftions if the array "x" contains "name:model" then store it in column model & etc.
Is there a way to get the full array of [pflds] and its all information no matter whether the field is empty or not?
Also, there is a fact that I do not know what information I can actually get.