Arrow

Another silly, my dumb modification | Peter's Sports League Standings | Forum

Back to the sports standings script page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Another silly, my dumb modification
July 30, 2008
11:09 pm
Jay
Guest

I am drawing a blank here on how to edit the query on the standings display. For our recreation ages 10 years old and younger, we put the focus on FUN and do not keep standings so we do not want that displayed. If I only want to display certain divisions (example: divid > 13), how do I do it?

If feel dumb here. I should know this!

July 31, 2008
12:55 am
Peter
Admin
Forum Posts: 841
Offline

If we start with this query:

SELECT divname, divid FROM sportsdb_divs WHERE conference = $confid ORDER BY divorder

You could filter out divisions this way:

SELECT divname, divid FROM sportsdb_divs WHERE conference = $confid AND divid NOT IN (4, 7, 9) ORDER BY divorder

You could use that "[WHERE|AND] id_for_field NOT IN (list, of, ids)" syntax to exclude items in similar queries.