Code: Select all
$result = sql_query("SELECT HOUR(gm_start) AS hour, COUNT(gt_pnum) AS pcount FROM {$dbpre}matches, {$dbpre}playersgt WHERE gm_num=gt_num GROUP BY hour");
Code: Select all
if (strtolower($dbtype) == "sqlite")
$result = sql_query("SELECT strftime('%H', gm_start) AS hour, COUNT(gt_pnum) AS pcount FROM {$dbpre}matches, {$dbpre}playersgt WHERE gm_num=gt_num GROUP BY hour");
else
$result = sql_query("SELECT HOUR(gm_start) AS hour, COUNT(gt_pnum) AS pcount FROM {$dbpre}matches, {$dbpre}playersgt WHERE gm_num=gt_num GROUP BY hour");
Code: Select all
SELECT strftime('%H', gm_start) AS hour, COUNT(gt_pnum) AS pcount FROM ut_matches, ut_playersgt WHERE gm_num=gt_num GROUP BY hour ORDER BY hour;
Here are my results. I was able to clear up the hanging bar in hour 23 by using the latest serverquery.php but the graph is still incorrect. I have removed any of the code that was causing issues before, as well as using latest index.php.Can you run a database query with the SQLite query utility and send me the results?
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\Tony>sqlite d:\utstatsdb\utstatsdb.db
SQLite version 2.8.17
Enter ".help" for instructions
sqlite> SELECT strftime('%H', gm_start) as HOUR, COUNT(gt_pnum) AS pcount FROM u
t_matches, ut_playersgt WHERE gm_num=gt_num GROUP BY hour ORDER BY hour;
00|145
01|123
02|101
03|89
04|55
05|52
06|65
07|66
08|73
09|105
10|127
11|126
12|132
13|145
14|136
15|161
16|187
17|183
18|193
19|181
20|180
21|177
22|179
23|172
sqlite>
No, thank you. File sent.Can you send me a copy of your utstatsdb.db file? You can rar/zip it up and PM it to me. Thanks.