Is it possible to create a nested array from a known node path? (PHP + SQL Server) -
Probably this question is stupid, but after a few hours of unsuccessful research (maybe my head is melting at the moment and I am doing this.
Unable to understand a $ a = 1
assignment), I feel compelled to seek help ...
I try to explain How to make a navigable tree to be made nested arrays, this result is given from a stored procedure:
Such arrays will follow this observation:
area > Country> City> Store
My first approach was to create this framework by creating recursive queries on different tables, which collect all the different identity IDs (like all country IDs are given regional area Is, and so on), filling a nested array and finally and
create structure.
But I am unable to guess if I can build this hierarchy starting from a single above the query, ID (separated by a '-') By adding path as root from the root (regional) to the leaves (store id). Then I will present the array in HTML as:
More than the lines of code, there are several questions:
- Is this view incorrect? Naive Unskilled? Total ignorance?
- Is this kind of result from the processed process the most suitable starting point for creating a nested structure?
- Is this database after a clear adjustment list structure and I am totally missing it?
- Any recommended readings for non-engineered graduates to understand basic agents and algorithms? << Li>
- I'm just messing up a very simple thing?
Many thanks,
Comments
Post a Comment