Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このクエリを適用すると、すべての投稿にコメントが繰り返し表示されます。
"SELECT post.posttext,post.post_id,comment.comt_id FROM post FULL JOIN comment ON post.post_id=comment.post_id AND user.user_id=".$userid."" ;
これを試してください:
SELECT post.posttext, post.post_id, comment.comt_id FROM post LEFT JOIN comment ON post.post_id=comment.post_id AND user.user_id={$userid} GROUP BY comment.comment_id ;