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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:29:03+00:00 2026-05-18T12:29:03+00:00

So, I implemented a voting system http://ad1987.blogspot.com/2009/02/reddit-style-voting-with-php-mysql-and.html on my website. It works perfectly, except

  • 0

So, I implemented a voting system
http://ad1987.blogspot.com/2009/02/reddit-style-voting-with-php-mysql-and.html

on my website. It works perfectly, except for the fact that each time you vote up or vote down it can add anywhere from 1-5 or so votes. The source code is pretty much the same to that on that website, so if you’d like to see it, please check it out there. For a live example:

http://www.campusbasement.com/cornell/entertainment/articles/927/electro-is-taking-over-the-world

Thanks

votes.php: http://pastie.org/1369778

  • 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-05-18T12:29:03+00:00Added an answer on May 18, 2026 at 12:29 pm

    I had a somewhat similar problem. Chrome for some still unknown reason downloaded each page twice, so the views counter was getting +2 each time.

    I suppose you have a user table with user_id, and an article table with article_id.
    So you can implement the check connecting this two tables with many-to-many relation. You should create an intermediate table with fields post_id – the post being voted for, user_id and optionally a value field (if the user decides to change his vote).
    The first two fields might be a composite primary key.

    So when user votes, you search for the row with the same post and user ids. If there are non – you add it.

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

Sidebar

Related Questions

I'm creating a voting system for my PHP/MySQL website and I would like to
Possible Duplicate: Stack Overflow / reddit voting system in php How do voting systems,
I implemented the Facebook registration on my website. Everything works fine except that suddenly
I am trying to integrate voting system in a website where a registered user
I implemented a custom drop down with HTML, CSS and JavaScript. It works well
I've implemented a voting system for videos online, wherein visitors can only cast a
I implemented the following code: NSURL *url = [ NSURL URLWithString:[ NSString stringWithFormat: @http://www.google.com/search?q=%@,
So I've implemented a voting system, and in my view where I print video.vote_sum
I currently have a voting system implemented in my app and I'm sorting the
I've implemented an up/down voting system that updates with ajax in my Ruby on

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.