Ok so the database is incredibly large over 3000 entries, sadly due to the project I am doing I can't explain a great deal of it as it's far to complicated to explain in such a small post. Only issue I have come across so far is actually a rather simple one I once resolved before but cannot seem to do it with this project. There are various relationships assigned within the database (not a relational db) but hierarchal.
For instance a single row would look like this:
That is fine I can sort that through an array, however in the database data is branched off depending upon the selection the user makes. Thus if they select GGmother there are more options under GGmother. Like so:
This then breaks up into even more diversity thus:
My question, is there any class out there already or any means by logic I can say, if the previous selection is equal to the current row then negate the previous parent.
Thus I will just get the child appearing of each selection.
Like this:
For instance a single row would look like this:
Code:
GGGmother->GGmother->Gmother->Mother->Child
That is fine I can sort that through an array, however in the database data is branched off depending upon the selection the user makes. Thus if they select GGmother there are more options under GGmother. Like so:
Code:
GGGmother->GGmother->Gmother->Mother->Child
GGGmother->GGmother->GmotherA->Mother->Child
GGGmother->GGmother->GmotherB->Mother->Child
GGGmother->GGmother->GmotherC->Mother->Child
This then breaks up into even more diversity thus:
Code:
GGGmother->GGmother->Gmother->Mother->Child
GGGmother->GGmother->GmotherA->Mother->Child
GGGmother->GGmother->GmotherA->MotherA->Child
GGGmother->GGmother->GmotherA->MotherB->Child
My question, is there any class out there already or any means by logic I can say, if the previous selection is equal to the current row then negate the previous parent.
Thus I will just get the child appearing of each selection.
Like this:
Code:
GGGmother->GGmotherA
->GGmotherB
->GGmotherC
Code:
GGGmother->GGmotherA->GmotherA
->GmotherB
->GmotherC