[SOLVED] sort related content
Posted: Fri Apr 13, 2007 11:06 pm
Hi all.
I am building a website where items are displayed and my users can leave comments about them. This part is fine. The problem is inside my administrator panel ( ACP ). I have a page that displays to me all the comments for all the items that are displayed. Unfortunately i am getting duplicate and beyond results for the same item because more than one user has left a comment for it. My layout with this dup problem looks like so :
item 1
--------
- a user comment
item 2
--------
- a user comment
item 2
--------
- another user comment
What i am trying to achieve here is to have all user-made comments to be related to that one item they're commenting on. My current code isn't made to do this, so it's not like i coded it but it does not work, i am just looking for some pointers as to how it can be done.
Thanks
-- tarja
I am building a website where items are displayed and my users can leave comments about them. This part is fine. The problem is inside my administrator panel ( ACP ). I have a page that displays to me all the comments for all the items that are displayed. Unfortunately i am getting duplicate and beyond results for the same item because more than one user has left a comment for it. My layout with this dup problem looks like so :
item 1
--------
- a user comment
item 2
--------
- a user comment
item 2
--------
- another user comment
What i am trying to achieve here is to have all user-made comments to be related to that one item they're commenting on. My current code isn't made to do this, so it's not like i coded it but it does not work, i am just looking for some pointers as to how it can be done.
Thanks
-- tarja