I have a following mysql table with a lot (3000+) of values:
[id] [parent_id] [string]
and want to print it out as a nested tree (eg. nested uls). Note that it has infinite depth.
I tried nesting functions as in this SO answer, but it was really slow. My other approaches failed, not obeying the infinite depth.
parent_idthe node? Unsure what you want here... -- What is the specific problem or question here? It's a little vague.