I’m not good at sql queries so the question is:
How do I list all the Posts where logged in user has left the comment?
I guess it’s kinda obvious that redundancy is unwanted in case user posted multiple comments to the same Post.
Thanks!
I’m not good at sql queries so the question is:
How do I list all the Posts where logged in user has left the comment?
I guess it’s kinda obvious that redundancy is unwanted in case user posted multiple comments to the same Post.
Thanks!
You must be logged in to post a comment.
It should be simple since comments are stored with a user_id if they are created by a logged in user and if not then its set to false so all you need to do is select the post id from comments that are made by user_id bigger the zero, something like this: