Avatar of sanchit gupta
sanchit gupta
 asked on

How to take votes and rank images using PHP and MySQL

I'm trying to build a php ranking system for images. As soon as the user clicks on the image it gets upvoted by 1. Depending on how an image is ranked decides what its place on the leaderboard (rank number) would be. The rank should change depending on the different ratings it receives from users. I want to keep ranking ip based as in like no same user can vote twice.  I have written the frontend code for the same.

Would integrate it if needed.
PHP* ipHTMLImages and Photos

Avatar of undefined
Last Comment
Ray Paseur

8/22/2022 - Mon
SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
sanchit gupta

ASKER
@Ray Doing that with images would be a little different. Could you please write an article for the same?
SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
sanchit gupta

ASKER
gigs project cost money
Ray Paseur

Of course Gigs cost money!  Why?  Because they're worth it.  

You get value from the help of a knowledgeable and experienced developer.  The alternative is for you to take the time and effort to learn everything a developer already knows, and then do the work yourself.  Even in a concentrated learning environment such as a university, you would need months to learn what you're asking me to write an article about.  If I had the "free time" to write the article, I would consider it.  But the truth is that all of the information a developer would need is already in the article about vote counting.

If you're new to PHP and want to learn the language, this article can help.  It will show you good learning resources and help you avoid the many dangerous, outdated and incompetent PHP examples that litter the internet.
https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Scott Fell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Scott Fell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Ray Paseur

abandoned question - hopefully taken up in Gigs