Arrow

winner/loser in future games (a Play b) | Peter's Sports League Standings | Forum

Back to the sports standings script page
 
Current User: Guest
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

winner/loser in future games (a Play b)

Reply to Post Add a New Topic
UserPost

9:39 am
November 22, 2010


Skinner

Guest

I am adding new functionality to standings – added an 'import CSV' option. Works fine, but now when I get to the editing of a record of a future game the code deals with winner and loser – and of course these aren't known – very confusing. Also what are the fields rf and ra for? Any help appreciated, thanks.
Also is there a manual?

11:05 pm
November 22, 2010


Peter

Admin

posts 732

The naming convention is indeed confusing and needs an overhaul. In the code, "winner" is the home team and "loser" is the away team while the "winortie" field determines who won.

"rf" is runs for
"ra" is runs against

Of course, it doesn't actually have to represent runs. It's just that the script was originally written for baseball or softball.

Reply to Post

Reply to Topic:
winner/loser in future games (a Play b)

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
9 + 9