We help IT Professionals succeed at work.

How to take votes and rank images using PHP and MySQL

sanchit gupta
on
163 Views
Last Modified: 2017-06-05
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.
Comment
Watch Question

Most Valuable Expert 2011
Author of the Year 2014
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
@Ray Doing that with images would be a little different. Could you please write an article for the same?
Most Valuable Expert 2011
Author of the Year 2014
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
gigs project cost money
Most Valuable Expert 2011
Author of the Year 2014

Commented:
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
Developer
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Most Valuable Expert 2011
Author of the Year 2014

Commented:
abandoned question - hopefully taken up in Gigs

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions