Jeremygolf
Mitglied
I'm working on a website to create golf statistics. And I need to store rounds, and every round has 9 or 18 holes. So for example I want to save every score of each hole, how would I do that. One round should be one database entry. In MySQL I can't create arrays. I want to use MySQL how can I do that? Or are there better backends?
Example:
On every hole I make a random score between 2 - 6 Shots. Every hole I need to check if I hit the green (yes/no).
So entry should be something like this:
greenhits: yes, yes, yes, no, yes, no, yes, yes, no ...
score: 5, 4, 5, 3, 2, 4, 4, ....
And all this should go into one single database entry. How can I do that with mysql?
Thank You
Example:
On every hole I make a random score between 2 - 6 Shots. Every hole I need to check if I hit the green (yes/no).
So entry should be something like this:
greenhits: yes, yes, yes, no, yes, no, yes, yes, no ...
score: 5, 4, 5, 3, 2, 4, 4, ....
And all this should go into one single database entry. How can I do that with mysql?
Thank You