I dont know where to start let me make it simple...
I have 2 tables posts and comments, posts consisting 2 fields: id
and post_name
and comments consisting of 3 fields: id
, comment
and post_id
. I have some posts with few comments on those.
How can I display all posts with the related comments using while loop?
Thanks in advance....
See Question&Answers more detail:os