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 8089877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:32:55+00:00 2026-06-05T19:32:55+00:00

I have not started creating the code so I don’t have anything to show,

  • 0

I have not started creating the code so I don’t have anything to show, but what I am going to create is a simple button after each post on my website that allows users to “Like” the post. The only problem I have is figuring out what my MySQL table should look like for this feat. I want to add a ‘rating’ column in my ‘tbl_posts’ table that stores the count, but I’m not sure how to make it so that each user can only upvote the post once. Any ideas on how to create the database in this way?

Also, I want to create the “Like” button using jQuery. What do you recommend is the best way to create the Like button.

Gracias.

  • 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-05T19:32:56+00:00Added an answer on June 5, 2026 at 7:32 pm

    If you’re talking about registered users on your page you could create a user_likes_post m:n relation between your post and user tables.

    If you’re talking about page visitors you’ll have to resort to IP addresses and/or cookies to make sure everyone can upvote only once.

    For the button itself i’d recommend jQuery UI

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

Sidebar

Related Questions

I've just started creating Unit Tests for my code again. I have had PHPUnit
have not tested on windows. but in ubuntu when u disconnect from the network,
I have not understood the following code snippet why afterDelay(0) {...} , a locally
I have not written any code to set or get cookie. Am using only
I have started to code a web app for small businesses, and I have
Here I am not creating a RESTful service indeed I have to call an
I have a simple Comment model and controller. When I create a comment in
I have just started working on an MVC project and things are going ok
I have not found it anywhere so I am asking. How can I write
I have not been using MVC3 for that long and think this is a

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.