I am new to web programming and need some expert advise.
I am using SQL database for one of my website project.
My website will display a list of topics with a Like and Dislike button. Logged in users will be able to click on the Like or dislike button for each topic.
I am able to keep a count of likes and dislikes for each topics. So if a user clicks on a certain topic it will display the number of Likes and Dislikes for that particular topic, however what I am trying to achieve is when someone clicks on a particular Users profile it should display all the topics that user likes or dislikes.
For example when we click on a users profile in Facebook, it displays all the comments or Likes of that particular user, how do I do something similar to that. I would like to know the data structure to implement this and query the data
Thank you all.
Regards,
Aaf.
I am new to web programming and need some expert advise. I am using
Share
This is a simple schema you could use. isLike is a boolean, true if it’s a like, false if it’s a dislike.
To query the total likesdislikes by topic
For all of a user’s liked topics
And so forth.