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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:11:49+00:00 2026-06-18T12:11:49+00:00

Here’s one that someone with some good web dev experience can really sink their

  • 0

Here’s one that someone with some good web dev experience can really sink their teeth into:

I have a series of 4 images:
1. thumbs-up.jpeg
2. thumbs-up-unclicked.jpeg
3. thumbs-down.jpeg
4. thumbs-down-unclicked.jpeg

Here is the webpage that I have right now, of my four images, which change on mouseover: http://stateofdebate.com/test.html

What I’d like to do is be able to rate each debate topic (http://stateofdebate.com/debatelist.php), and also to rank arguments…to view arguments, sign up, enter a username and password, and login. Then you can click on any of the debates and see an argument.

There are several tasks that I don’t know how to accomplish:
1. how to link the images with the mySQL database (do i turn them into some kind of object..?)
2. how to relate the thumbs up/down with each item (i.e. how to make a thumbs up/down ranking for each item)
3. how to get the debate topics to shift up and down based on which one has a better ratio of up/down

I know this may seem vague, but if you look at the links, it may clear things up.

Thanks!

  • 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-18T12:11:50+00:00Added an answer on June 18, 2026 at 12:11 pm

    Each user should have a record in a users table

    users
    id,...
    

    Each image should have a record in an image table

    images
    id,created_date,file_path,...
    

    Each vote should have a record in a junction table that looks like:

    image_votes
    user_id,image_id,vote_value
    

    where the value is 0 for a down vote, 1 for an upvote, and no record exists for a nonexistent vote

    further, for comments you would have a table that looks like

    image_comments
    id,image_id,user_id,text,created_date
    

    then you could have a simliar voting system for comments

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

Sidebar

Related Questions

Here is a scenario: User installs .NET application that you have made. After some
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Here's some of my production code (I had to force line breaks): task =
Here's the setup - I have a view that lists products. On that same
Here's a sample of a SpinBox that writes its changes to underlying variables. The
Here are some facts about my app followed by a question My app has
Here is my scenario. I have a website running under AppPool1 and that works
Here's the code I have. It works. The only problem is that the first
Here is an object that I'd like to use with ng-repeat, but it's not
Here is another spoj problem that asks how to find the number of distinct

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.