Cheers
Data is entered via a web page and the votes get written to a file, looking like
01,01,02,03,23/03/2011 12:27:41
01,03,05,08,23/03/2011 12:37:41
01,02,05,07,23/03/2011 12:47:41
01,03,02,03,23/03/2011 12:57:41
01,01,06,08,23/03/2011 12:67:41
02,01,02,03,24/03/2011 12:27:41
02,03,05,08,24/03/2011 12:37:41
02,02,05,07,24/03/2011 12:47:41
02,03,02,03,24/03/2011 12:57:41
02,01,06,08,24/03/2011 12:67:41
where:
the first value is the game, the second, third and fourth values are the players that have been voted for. The last is date and time.
So in the above example, 5 votes have been made for both games one and two.
In the first record
01,01,02,03,23/03/2011 12:27:41
For game 01, player 01 would get 3 points, player 02 would get 2 points and player 03 would get 1 point
.
I had tried to make a smaller version of the code (using only three tables rather than 25) but...still left me completely non plussed!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.