summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-05-11 22:16:55 -0700
committerArun Persaud <arun@nubati.net>2009-05-11 22:16:55 -0700
commit51cc704dab09b2027b911a111e4eec2041a14cb1 (patch)
tree5d1c5b993e352e64b7473d1d88a36ba31f66f94b /include/db.php
parent14e3ecf14c8b5cc2c1d89940ec61ca8d7a303326 (diff)
parent0edb4b26c049e07af0970e081fab699d2bdd333b (diff)
downloade-DoKo-51cc704dab09b2027b911a111e4eec2041a14cb1.tar.gz
e-DoKo-51cc704dab09b2027b911a111e4eec2041a14cb1.tar.bz2
e-DoKo-51cc704dab09b2027b911a111e4eec2041a14cb1.zip
Merge branch 'master' of /home/arun/nubati.net/git/e-DoKo
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