SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Manchester, England
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Voting Script which shows Top 10

    Hi Guys! This is my first post in this forum, so please be nice

    What I need is a PHP script which lets users rate (out of 10) a certain item. I would obviously like an average rating display. Here's the tricky 'add-on' part :

    What I need now is to have a script, which takes these averages and creates a table with the top 10 reviews by average. i.e. so the item with the highest average will be number 1 in the list, the 2nd highest average will be number 2 and so on...
    Im sure this can be done, Im just a little stuck on how to do it. I can code PHP, but would prefer, in this case for a whole script be handed to me on a platter so to speak.

    Thanks a lot for your help in advance guys and gals.

    Rich
    ===========================
    Rich Tape aka Sticky aka DJinDecent
    ===========================

  2. #2
    SitePoint Evangelist
    Join Date
    Dec 2000
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rich,

    Basically what you would do woudl be to use LIMITS. Read this part of Kevin Yank's article for details and code.

    Hope that helps!
    Corbb O'Connor
    Looking for quality website design or database programming?
    Contact me for more information and a FREE quote!

  3. #3
    ********* obeah makeda's Avatar
    Join Date
    Jun 2001
    Location
    rollin' on dubs
    Posts
    492
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also, take a look at this article. it may not describe exactly what you want to do but it should give you some ideas:

    http://www.devshed.com/Server_Side/PHP/PHPDemocracy/

    good luck!

  4. #4
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Manchester, England
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers guys

    Two good articles there have given me some insight. Apart from hotscripts, do you guys know any good places to download some pre-made scripts? Cheers guys
    ===========================
    Rich Tape aka Sticky aka DJinDecent
    ===========================


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
  •