Jump to content

stelhar_1999

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Posts posted by stelhar_1999

  1. to be more precise here is the structure of my table "data"

    [u]id|radioname |blabla|....|blabla|hits[/u]
    1 |testradio|blabla|....|blabla|200
    -------------------------------------------
    2 | testradio2|blabla|....|blabla|7

    So every entry is unigue and I want to have the top 10 radios, showing their percentage instead of hits!
    The problem is that I can't take the sum of the top 10 radios with a query!
  2. i want to make a top 10 using a field containing hits and show up a percentage in the results
    What i try to do is to SUM the top 10 hits using a query like this:
    "SELECT SUM(hits) as sumvotes ORDER BY sumvotes DESC LIMIT 10"
    but The number that I get is the sum of all the hits in the db and not for the top 10
    where am I wrong?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.