![]() |
Nested Sets headache - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Nested Sets headache (/showthread.php?tid=16568) |
Nested Sets headache - El Forum - 03-10-2009 [eluser]jwindhorst[/eluser] I have been implementing a nested sets (folder hierarchy) navigation for a site and I can't seem to get this one query right. This should be getting only the immediate children of a parent node. But it seems that my "depth" variable is not getting set right. Ideal I would like the final depth to be 1 according to everything I've been reading, but I'm getting -9 for some reason. Please help, I can no longer see the forest for the trees in the way! Thanks Code: SELECT Nested Sets headache - El Forum - 03-10-2009 [eluser]pistolPete[/eluser] I didn't look at your query, but did you that there are some ready libraries for CI? http://ellislab.com/forums/viewreply/545521/ Nested Sets headache - El Forum - 03-10-2009 [eluser]jwindhorst[/eluser] I did know that, and implemented Thunders, but the thread in the forum seems to be a little stale. I was hoping posting it outside might draw more attention. |