我一直在尋找一個N-level tree class。N級樹PHP MYSQL幫助
任何人都可能建議我可以顯示結果的最佳方式,即循環結果集,我應該使用DIV還是UL?
一個例子的結果集類似,所以如果你覺得這篇文章太長閱讀
Array ([531] => stdClass Object ([id] => 531 [rid] => 0 [created] => 1255384549 [nleft] => 1 [nright] => 8 [nlevel] => 1) [534] => stdClass Object ([id] => 534 [rid] => 531 [created] => 1255384549 [nleft] => 2 [nright] => 3 [nlevel] => 2) [532] => stdClass Object ([id] => 532 [rid] => 531 [created] => 1255384587 [nleft] => 4 [nright] => 7 [nlevel] => 2) [533] => stdClass Object ([id] => 533 [rid] => 532 [created] => 1255384628 [nleft] => 5 [nright] => 6 [nlevel] => 3))
任何意見是apreciated
感謝
本質上的螺紋論壇視圖 – blakey87 2009-10-14 22:38:50