Advanced Search

Results 1 to 4 of 4

Thread: Rating system

  1. #1
    Join Date
    Oct 2012
    Location
    England
    Posts
    88
    Thanks
    24
    Thanked 2 Times in 1 Post

    Default Rating system

    Hiya,

    I have been asked to produce a system where staff members can rate a resource out of 5 using stars similar to Amazon.

    I have found a few examples on line and have tried them but with little result.

    I know I may sound 'stupid' here but I have been using the Moo Tools one as a template

    http://www.eccemedia.com/blog/blog.e...-rating-script

    And I can get the stars to work but how does it store the rating and then display and average of the ratings?

    I'll be prefectly honest with you from what I have seen on-line it does seem a bit beyond my knowledge and if there is a code sample out there that does the trick then I'd love to know about it.

    Many thanks,


    Jasy Dog

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,882
    Thanks
    16
    Thanked 288 Times in 287 Posts
    Blog Entries
    4

    Default

    Typically, the data would be stored in a database - MySQL or sometime flat-files (text files)

    You'll find lots of pre-made rating scripts here: http://www.hotscripts.com/search/php/rating+system - skip over the "sponsored" stuff and the goodies start 6 or 7 items down. Just work through, test the demos and select something you like the look of. Some are free and some are commercial so you should find one that's suitable.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Oct 2012
    Location
    England
    Posts
    88
    Thanks
    24
    Thanked 2 Times in 1 Post

    Default

    Hi Thanks, I'm looking at this one here:


    http://www.hscripts.com/scripts/php/starrating.php

    These are the instructions:

    a) Unzip the folder "five-star-rating.zip" .
    b) Create a database for Five star rating Scriptand name it, for example, as "star".
    c) Change the configuration file(config.php) to match with your database.
    d) Run the file "tables.php" in your browser.
    e) You will get the message, "Your tables are created succezzfully.........."
    f) Run the file "code.php".
    g) The code will be generated and this can be placed wherever you wish the five star rating to appear.


    a) is simples, just done that but hate to sound like a complete dumbo but the bit on b) create a database... has got me lost, how do I do that and in what package?

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,882
    Thanks
    16
    Thanked 288 Times in 287 Posts
    Blog Entries
    4

    Default

    That will be via your web hosts control panel, so go there, login in to your customer account, and look for something in the menu under a "database" heading - possibly something called "database manager" or "mySQL manager" (most likely sat alongside something called "phpMyAdmin"), although if you can't easily find it, its best to check with your host.
    Last edited by Beverleyh; 03-04-2013 at 03:55 PM.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

Similar Threads

  1. Feedback Rating system
    By Aaron in forum Looking for such a script or service
    Replies: 0
    Last Post: 02-28-2008, 09:37 PM
  2. Dynamic Drive's rating system
    By riyadh in forum PHP
    Replies: 1
    Last Post: 02-13-2007, 09:50 PM
  3. That 5 Star Rating System
    By Elmo in forum Other
    Replies: 1
    Last Post: 07-10-2006, 06:41 AM
  4. Rating System
    By Wondervideo in forum PHP
    Replies: 6
    Last Post: 05-18-2006, 09:08 PM
  5. Rating System
    By Wondervideo in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-15-2006, 05:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •