![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Dec 2008
Posts: 16
OS: Windows Vista Service Pack 1
|
Rating formula - HELP!!
Hi,
I am trying to make a rating system but I am not sure of the formula to use to show the average rating/overall rating. The user can rate anywhere from 1 to 5. If anyone knows I would be very grateful. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
|
Re: Rating formula - HELP!!
Who will be rating? Anonymous users or people who have to login to their account before they can rate?
Regardless, at the basic level...you add all of the votes up and then divide by the amount of votes. So if there are 24 votes that add up to 72, the average rating is 3. Once you post a little more specifics about how you want to do it...I'll try to scrounge up some old code I made for a rating system on a video game file website. It's not that hard...and is a pretty nifty feature.
__________________
Free Resources PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |Web Design/Programming - KompoZer (Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting | |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Dec 2008
Posts: 16
OS: Windows Vista Service Pack 1
|
Re: Rating formula - HELP!!
Thanks a lot! It would be great if you could post your code.
Users do not have to log in first, but if your script has that support go ahead and post it, I may have need for it in the future. I am not to picky about how it should look as far as HOW the user rates. What I mean by this is that users can rate by a dropdown menu or by selecting stars. Also, the average rating can be displayed by a level-bar or stars. Does your script have IP support?(So that users can rate only once per page).Oh, and by the way: I would prefer it if the ratings were stored in a text file vs. a mySQL database. I can make changes to the code if need-be, don't worry about it being perfect. Thanks, Moatist |
|
|
|
![]() |
| Thread Tools | |
|
|