[eluser]OES[/eluser]
Hi Peeps
Would like some advice on a query or a better way to do it.
I have a simple news table and second with comments ie.
Code:
Table news
news_id
news_title
news_body
news_date
Table news_comments
newscomment_id
newscomment_news_id
newscomment_title
newscomment_body
If I done a query to loop the latest 10 news items what would be the bast way to count how many comments are associated to them.
ie Comment Title (2 Comments)
Or would it be best to include in the news table a line for comments and increase the number when someone submits a comment.
Sorry but a newbie to this :-).
Hope you can advise on the best way.
Thanks in advanced