so i\'ve been trying to build a threaded comments section on my website, with little to no luck trying to figure out how to loop through 2 while loops and load my comments. i\'ve read a lot of different code snippets and comments about this, and seem to get further lost.. here is what im attempting, mysql database looks like this
id
profile_id
parent
type " 'a', 'b' "
comment
datetime
so far ive tried doing it with one query and one loop, and 2 queries and 2 loops, and i only ever get errors or just one parent and one child.... and i have many parents and many children, but children are only one deep... i dont necessarily need the answeres or someone to do this for me, but maybe someone know a good easy to understand tutorial i can go through to help me unserstand... thanks
id
profile_id
parent
type " 'a', 'b' "
comment
datetime
so far ive tried doing it with one query and one loop, and 2 queries and 2 loops, and i only ever get errors or just one parent and one child.... and i have many parents and many children, but children are only one deep... i dont necessarily need the answeres or someone to do this for me, but maybe someone know a good easy to understand tutorial i can go through to help me unserstand... thanks
Comment