moved php from old mysql to myslqi to make things more future proof
[e-DoKo.git] / include / stats.php
index d72b1efcc70ab6bb073b172b5b7cdb259d218b75..1042c6b2fd2f1e3d91b9210f7554fe054ce512d9 100644 (file)
@@ -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";
   */