summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/db.php b/include/db.php
index 3d9d98c..b8b184d 100644
--- a/include/db.php
+++ b/include/db.php
@@ -1149,4 +1149,10 @@ function DB_played_by_others($gameid)
$gameids[]=$r[0];
return $gameids;
}
+
+function DB_get_number_of_tricks($gameid,$position)
+{
+ $r = DB_query_array("SELECT COUNT(winner) FROM Trick Where game_id='$gameid' and winner='$position'");
+ return $r[0];
+}
?> \ No newline at end of file