- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi there
I’ve got a database table with tags. Each tag has a parent tag assigned. What I’d like to do, is to get a nested HTML list like that:
Now I’m looking for a way with PHP to get the database entries to an array (probably) to manage such a list. Has anybody any ideas how to get this done?
Thanks
not exacly the same but the technique in this blogpost can be used for your problem aswell:
Just a heads up, each of those sub unordered lists need to be wrapped in a list-item tag. If not it doesn’t validate. I can’t help with you’re current problem but this might save you some hassle later on down the road.
Thanks to Argeaux for the link. I’ve bookmarked it, it’s very useful for recursions.
@noahgelman:
You’re right, I forgot that when writing that little code snippet.