I feel really stupid asking this and I've searched around before and had a bit of help but not really. I really want to understand how to do this.
Basically I want the output to be something like this
The problem I am having is I am not sure how to make sure the type is not a child type and to loop through infinitely if needed for subtypes... or at least 3, possibly 4 times.
Here's an SQL dump.
Here's my not working code.
Here's what it's outputting.
Here's what I want it to output (note the type IDs in the subtypes is being used instead of starting from 1 again, note also that if sonnet had a sub type it would do the same thing for sonnet).
If anyone could help me at all that would be fantastic. I really want to learn and understand how to do this correctly but I'm very lost!
Sorry for all the links I keep getting "your post has improperly formatted code" even using pre tags on that first link....it's been rough posting this :(.
I finally got it to work with this :)