table structure
id | message | reply_id
1 | help me! | 0
434 | love to | 1
852 | didn't work | 434
0110 | try this | 852
2200 | this wont | 0
5465 | done. :) | 0110
i have a id "852" which is middle of tree menu, but i want to get all the previous related and next related rows, so i want to get following results like this:
help me! > love to > didn't work > try this > done. :) (this result shows like that after php loop, but starts looping from starter id 1 with reply id 0.
NOTE: 2200 id didn't show in the result, because its not part of the group.