Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9093975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:14:18+00:00 2026-06-16T23:14:18+00:00

I am new to web programming and need some expert advise. I am using

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T23:14:19+00:00Added an answer on June 16, 2026 at 11:14 pm

    enter image description here

    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

        Select Count(*), Topic,isLike FROM LikesDislikes GROUP BY Topic,isLike
    

    For all of a user’s liked topics

       SELECT topic FROM likesdislikes WHERE userName = 'user' AND isLike = true;
    

    And so forth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to web programming, so I need some help. I am writing a
I am new to web programming,learning VBScript.I want to display few text boxes in
I'm a fairly new programmer and very new to web programming and I need
I am new to using flash and I need to make a web application
i am new at programming and i need some help with that please =/
Hi people as a new web programming im having a scenario and i need
Hello fellow coder i am new to web programming and i need so major
I'm new to Sinatra and programming for the web, so some of the terminology
I am new to web programming and Visual Web Developer. I have made a
I am new to web programming and my first draft of a web page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.