I have a table that has a column called WEEK.
I basically have a user pick who will win a game HOME or AWAY over 82 weeks of the season.
I am using a form to get their selections where they choose a radio button for HOME or AWAY.
I want to put the data of each selection into an array, week[]. So for week 1 I think the value will be HOME or AWAY and I will put the data in as week[week1] and then for week 2 I would put the data in as week[week2].... is this correct?
Then when they submit their selections I want to pump the array into the data base to later compare each week's pick to a masterweek[] array.
if(week[week1] == masterweek[week1])
$score++;
if{week[week2] == masterweek[week2])
$score++;
......
So can I store the array in the table for all 82 weeks and then pull it out? The table value is week VARCHAR(5); Cuz I was going to go with H (for HOME) and A (for AWAY).
Do I know what I am doing here or do I have to figure out some other way to do this?
Any help will be great!
Thanks,
Sundawg