summaryrefslogtreecommitdiffstats
path: root/include/stats.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2013-02-09 08:55:42 -0800
committerArun Persaud <arun@nubati.net>2013-02-09 08:55:42 -0800
commit34745273b4e8935b4423a0db050dcd75bc672209 (patch)
tree65d07cd87ac3205bbb783af4b35f1b326461f9eb /include/stats.php
parent64586775883969c933517edc541b6f5a0878bd7d (diff)
downloade-DoKo-34745273b4e8935b4423a0db050dcd75bc672209.tar.gz
e-DoKo-34745273b4e8935b4423a0db050dcd75bc672209.tar.bz2
e-DoKo-34745273b4e8935b4423a0db050dcd75bc672209.zip
moved php from old mysql to myslqi to make things more future proof
Diffstat (limited to 'include/stats.php')
-rw-r--r--include/stats.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/stats.php b/include/stats.php
index d72b1ef..1042c6b 100644
--- a/include/stats.php
+++ b/include/stats.php
@@ -199,13 +199,14 @@ if( !$content = getCache("cache/stats.html",60*60*24) )
/*
does the party win more often if they start
+ global $DB;
echo "<p>The party playing first wins in";
- $result = mysql_query("SELECT COUNT(*) from Score".
+ $result = $DB->query("SELECT COUNT(*) from Score".
" LEFT JOIN Game ON Game.id=game_id".
" WHERE score='againstqueens'".
" AND Game.status='gameover'".
" AND Game.type<>'solo'");
- while( $r = mysql_fetch_array($result,MYSQL_NUM))
+ while( $r = $result->fetch_array(MYSQLI_NUM))
echo $r[1]." (".$r[0].") <br />\n";
echo " games</p>\n";
*/