Jump to content

Manipulating table data


jd|

Recommended Posts

Hi I’m creating a site for my golf society and I have come to a stand still and am unsure on how to continue.

I have a form that inputs a score for each member this is recorded in a table along with the course id. When all the data is entered I need to adjust everyone’s handicap based on certain rules the handicap is stored in a different table. i.e

· The winnings handicap has 2 strokes deducted from their handicap
· Anyone with more than 36 points has 0.5 deducted from their handicap
· Anyone three points below the winner will receive 0.1 onto their handicap
· Anyone six points below the winner will receive 0.2 onto their handicap.

The problem is I think I can write the “if else” statements to cover all the eventualities but I have no clue on how to loop the data through the loop.

Any help would be greatly appreciated.

JD
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.