My Stats Stuff.. or .. my "geekdom":
OK, Bill Rini asked for a preview, lets see what I can do here.
This is the input:
----------------------------------------------------
OK, on the input stuff, the php stuff that figures out the currect date/time is not working on the Blogger site here. Basically:
value=< ? php echo date("Y-m-d") .. this will put in the correct date in the format 2005-09-12 for today's date. value=< ? php echo date("H:i:00") .. this will put in the current time in the format 12:26:00 for the current time. Notes: must have php loaded on your PC; there is no space between the less-than sign and the question mark, I separated so that the editor would not try to make some kind of html out of it. If the Insert radio button is selected, the action.php form that I send the information to will insert the information that I inputted into the database. If it's Totals Only, then, you guessed it, no insert just totals:
Grand Total | Duration |
---|---|
xxxx.26 | xxxx.18 |
Today's Totals | Duration |
---|---|
xxx.xx | xxx.xx |
GAME | LIMIT | $perHOUR | TOTAL_$s | TOTAL_HRS |
5cardstud | 1/2 | -00024.47 | -00046.50 | 1.90 |
adjust_bonus_re | 0.01/0.02 | 000048.50 | 000194.00 | 4.00 |
adjust_bonus_re | 1/2 | 000020.00 | 000020.00 | 1.00 |
draw | 0.05/0.10 | 000000.22 | 000001.00 | 4.50 |
draw | 0.25/0.5 | 000000.65 | 000039.50 | 60.00 |
draw | 0.5/1 | 000005.03 | 0000xx.00 | xx.50 |
draw | 1/2 | 000005.84 | xxxxxx.45 | xx.80 |
draw | 2/4 | -00000.59 | -00020.00 | 33.57 |
draw | 3/6 | 000005.98 | 000038.10 | 6.37 |
draw | 5/10 | 001283.33 | 000038.50 | 0.03 |
draw | tournament | 000000.87 | 000016.00 | 18.25 |
Holdem | 0.05/0.10 | 000001.67 | 000004.19 | 2.50 |
Holdem | 0.10/0.20 | 000000.00 | 000000.00 | 7.00 |
Holdem | 0.25/0.5 | 000001.11 | 000071.20 | 64.12 |
Holdem | 0.5/1 | 000000.59 | 000064.24 | 107.98 |
And, oh there's more, no limit stats, tourney stats, stud, stud hi/low, etc.. I didn't include the whole table :p
In the table, I use a Java script that I got from http://javascript.internet.com. This script sorts the table that I create to output the values. The way the script works, I have to pad the table with zeroes so that it sorts correctly! There's prolly a better way.. I just haven't found one yet.
Also, the table that spits out is lifetime, over 2 years ago. That's since I start keeping stats on StatKing (I imported everything from the DB that I had on the other PC).
Since I play better then I did 2 years ago, created a totals only type input that will date range:
Posted by Glenn
1 Comments:
I love it! PHP rules.
Post a Comment
<< Home